Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
defreng committed Sep 17, 2023
1 parent f941952 commit 9289d3e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/e2e/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,13 @@ def gitlab_template_repository(gitlab_client: Client, gitlab_project_factory: Ca


@pytest.fixture
async def foxops_client(gitlab_settings: GitlabTestSettings, foxops_database: str, monkeypatch):
async def foxops_client(gitlab_address: str, gitlab_access_token: str, foxops_database: str, monkeypatch):
static_token = "test-token"

assert gitlab_settings.token is not None

monkeypatch.setenv("FOXOPS_DATABASE_URL", foxops_database)
monkeypatch.setenv("FOXOPS_HOSTER_TYPE", "gitlab")
monkeypatch.setenv("FOXOPS_HOSTER_GITLAB_ADDRESS", gitlab_settings.address)
monkeypatch.setenv("FOXOPS_HOSTER_GITLAB_TOKEN", gitlab_settings.token.get_secret_value())
monkeypatch.setenv("FOXOPS_HOSTER_GITLAB_ADDRESS", gitlab_address)
monkeypatch.setenv("FOXOPS_HOSTER_GITLAB_TOKEN", gitlab_access_token)
monkeypatch.setenv("FOXOPS_STATIC_TOKEN", static_token)
monkeypatch.setenv("FOXOPS_LOG_LEVEL", "DEBUG")

Expand Down

0 comments on commit 9289d3e

Please sign in to comment.