-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
Description
Currently the code in Query.__init__() raises an error if no valid connection to flowdb exists.
This has various disadvantages. For example, it makes it necessary to create connections in all tests that use a flowmachine query, even if they don't require running it. A more subtle downside is that it encourages to write tests in a more integrationy style (typically running against the database and checking the result, which slows down the test suite) rather than encouraging a design which allows for more unit-style tests.
It would be beneficial if Query objects could be instantiated without requiring an active connection to flowdb (e.g. by passing a dummy connection).
greenape