Skip to content
Snippets Groups Projects
Commit 092db3b1 authored by Moul's avatar Moul
Browse files

test_auth: patch from imported module

parent 0ea32364
No related branches found
No related tags found
1 merge request!216#330: Restructure repository
......@@ -36,10 +36,10 @@ from tests.patched.auth import (
],
)
def test_auth_method(seed, file, wif, auth_method_called, monkeypatch):
monkeypatch.setattr("silkaj.auth.auth_by_seed", patched_auth_by_seed)
monkeypatch.setattr("silkaj.auth.auth_by_wif", patched_auth_by_wif)
monkeypatch.setattr("silkaj.auth.auth_by_auth_file", patched_auth_by_auth_file)
monkeypatch.setattr("silkaj.auth.auth_by_scrypt", patched_auth_by_scrypt)
monkeypatch.setattr(auth, "auth_by_seed", patched_auth_by_seed)
monkeypatch.setattr(auth, "auth_by_wif", patched_auth_by_wif)
monkeypatch.setattr(auth, "auth_by_auth_file", patched_auth_by_auth_file)
monkeypatch.setattr(auth, "auth_by_scrypt", patched_auth_by_scrypt)
ctx = click.Context(
click.Command(""), obj={"AUTH_SEED": seed, "AUTH_FILE": file, "AUTH_WIF": wif}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment