diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index fbb04f5..865d440 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -41,6 +41,8 @@ TRUMPET = str(Path(__file__).parent.parent.parent / "trumpet.png") ASSETS_DIR = str(Path(__file__).parent.parent / "assets") +PASSWORD = "83dU29170rjKilKQQwuWhJv3PKnSW59bWx0perjP6i7Nu4rkeh4mRfYuvVLYM3fM" + def create_app(base_url): instance = api.get_instance(base_url).json() @@ -52,7 +54,7 @@ def register_account(app: App): username = str(uuid.uuid4())[-10:] email = f"{username}@example.com" - response = api.register_account(app, username, email, "password", "en") + response = api.register_account(app, username, email, PASSWORD, "en") return User(app.instance, username, response["access_token"]) diff --git a/tests/integration/test_auth.py b/tests/integration/test_auth.py index 74db83b..bcf69fc 100644 --- a/tests/integration/test_auth.py +++ b/tests/integration/test_auth.py @@ -3,7 +3,7 @@ from unittest import mock from unittest.mock import MagicMock from toot import User, cli -from tests.integration.conftest import Run +from tests.integration.conftest import PASSWORD, Run # TODO: figure out how to test login @@ -89,7 +89,7 @@ def test_login_cli( cli.auth.login_cli, "--instance", "http://localhost:3000", "--email", f"{user.username}@example.com", - "--password", "password", + "--password", PASSWORD, ) assert result.exit_code == 0 assert "✓ Successfully logged in." in result.stdout