-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PLAT-160: Migrate test_privileges #1132
PLAT-160: Migrate test_privileges #1132
Conversation
@@ -52,12 +53,17 @@ def enable_filepath_feature(monkeypatch): | |||
|
|||
|
|||
@pytest.fixture(scope="session") | |||
def connection_root_bare(): | |||
connection = dj.Connection( | |||
def db_creds_root() -> Dict: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need the value of os.getenv("DJ_HOST")
in several test modules. Best to perform this once and inject it as a fixture. Making a note to replace the pattern os.getenv("DJ_HOST")
with this fixture in other modules besides test_privileges
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another thing that we should move to fixtures during the "big clean up".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't we just import CONN_INFO
(as done in #1133)
dev-tests