Skip to content

Commit a5e126a

Browse files
Don't pre-load test file
Without this, the following lines start appearing in the logs: ``` Import of docassemble.GithubFeedbackForm.test_feedback_db failed. ModuleNotFoundError: No module named 'testcontainers' ``` `testcontainers` isn't a runtime dependency, only a test one (can't distinguish between the two until we get `pyproject.toml` files in all our projects), so it's not needed to be installed on docassemble. The whole file should be ignored and not loaded anyway.
1 parent 8c2742b commit a5e126a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docassemble/GithubFeedbackForm/test_feedback_db.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# do not pre-load
2+
13
from testcontainers.postgres import PostgresContainer
24
from unittest import TestCase
35
from unittest.mock import patch

0 commit comments

Comments
 (0)