Skip to content
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

New fixture common_init_opts #65

Merged
merged 5 commits into from
Sep 13, 2023
Merged

New fixture common_init_opts #65

merged 5 commits into from
Sep 13, 2023

Conversation

adswa
Copy link
Member

@adswa adswa commented Sep 13, 2023

Fixes #63

This is to replace the variable 'common_init_opts' that used to be a part
of datalad/distributed/tests/ria_utils.py
@@ -72,3 +72,11 @@ def ria_sshserver(ria_sshserver_setup, monkeypatch):
with monkeypatch.context() as m:
m.setenv("DATALAD_SSH_IDENTITYFILE", ria_sshserver_setup['SSH_SECKEY'])
yield ria_baseurl, ria_sshserver_setup['LOCALPATH']


@pytest.fixture(autouse=False, scope="function")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically not necessary to be function-scope, could be session-scope (for now), but also fine as-is.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks. I've kept it as is for now.

datalad_ria/conftest.py Outdated Show resolved Hide resolved
datalad_ria/tests/test_fixtures.py Outdated Show resolved Hide resolved
Copy link
Member

@mih mih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx!

@mih mih merged commit 771feb6 into main Sep 13, 2023
4 checks passed
@mih mih deleted the fixture-init-opts branch September 13, 2023 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement fixture for common_init_opts
2 participants