We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7db1cc3 commit 56831a9Copy full SHA for 56831a9
tests/test_dependency.py
@@ -40,14 +40,8 @@ def test_sqlite_import():
40
"""
41
Checks that SQLite module is not imported until the SQLite class is instantiated
42
43
- filename = os.path.join(tempfile.gettempdir(), str(uuid.uuid4()))
44
-
45
- assert 'sqlite3' not in sys.modules
46
- db = SqliteDB(filename, JSONCodec())
47
- db.dump()
48
- assert 'sqlite3' in sys.modules
49
50
- os.remove(filename)
+ from doit import dependency
+ assert not hasattr(dependency, 'sqlite3')
51
52
####
53
# dependencies are files only (not other tasks).
0 commit comments