Added mock code #1883

Open
kdcis wants to merge 10 commits from kdcis/mock-test into v0.6
kdcis commented 2021-11-15 17:22:03 +01:00 (Migrated from github.com)

Added mock code for class_objectProcessor, class_singleWorker, inventory, connectionpool & stats

Added mock code for class_objectProcessor, class_singleWorker, inventory, connectionpool & stats
g1itch commented 2021-11-15 17:26:01 +01:00 (Migrated from github.com)

Wrong placement. There shouldn't be a mock package, because the end user doesn't need it. Please move into tests.

Wrong placement. There shouldn't be a `mock` package, because the end user doesn't need it. Please move into tests.
g1itch (Migrated from github.com) reviewed 2021-11-15 17:27:07 +01:00
g1itch (Migrated from github.com) commented 2021-11-15 17:27:07 +01:00

it will never happen

it will never happen
g1itch (Migrated from github.com) reviewed 2021-11-15 17:32:32 +01:00
g1itch (Migrated from github.com) commented 2021-11-15 17:32:32 +01:00

This is not a mock class because it uses sqlQuery() from helper_sql, thus depends on the sqlThread

This is not a mock class because it uses `sqlQuery()` from `helper_sql`, thus depends on the `sqlThread`
PeterSurda (Migrated from github.com) reviewed 2021-11-16 04:12:53 +01:00
PeterSurda (Migrated from github.com) commented 2021-11-16 04:12:53 +01:00

#1794 contains a test sql class (runs in-memory database and allows custom schema initialization), that will be used here as well.

#1794 contains a test sql class (runs in-memory database and allows custom schema initialization), that will be used here as well.
PeterSurda commented 2021-11-16 04:15:23 +01:00 (Migrated from github.com)

Wrong placement. There shouldn't be a mock package, because the end user doesn't need it. Please move into tests.

There are some technical difficulties with such an approach at the moment, needs a bit more work to fix it.

> Wrong placement. There shouldn't be a `mock` package, because the end user doesn't need it. Please move into tests. There are some technical difficulties with such an approach at the moment, needs a bit more work to fix it.
PeterSurda (Migrated from github.com) reviewed 2021-11-16 07:39:10 +01:00
PeterSurda (Migrated from github.com) commented 2021-11-16 07:39:10 +01:00

For the time being we can skip this, yes.

For the time being we can skip this, yes.
PeterSurda (Migrated from github.com) reviewed 2021-12-13 06:46:41 +01:00
PeterSurda (Migrated from github.com) commented 2021-12-13 06:46:41 +01:00

here it can start launching the mock threads.

here it can start launching the mock threads.
PeterSurda (Migrated from github.com) requested changes 2021-12-14 08:45:37 +01:00
PeterSurda (Migrated from github.com) commented 2021-12-14 08:45:27 +01:00

25 - 41 - remove

25 - 41 - remove
This repo is archived. You cannot comment on pull requests.
No description provided.