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

Port backup tests to python #2907

Merged
merged 19 commits into from
Mar 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
autouse fixture
  • Loading branch information
hubertdeng123 committed Mar 15, 2024
commit 3986cf41c0ff876c37c8776d23fda083879b507e
10 changes: 4 additions & 6 deletions _integration-test/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,17 @@ def get_sentry_dsn(session: requests.Session) -> str:
return sentry_dsn


@pytest.fixture(scope="session")
@pytest.fixture(scope="session", autouse=True)
def configure_self_hosted_environment():
response = None
run_shell_command("docker compose --ansi never up -d")
for i in range(TIMEOUT_SECONDS):
try:
response = requests.get(SENTRY_TEST_HOST)
except:
except requests.ConnectionError:
time.sleep(1)
pass
else:
if response is not None and response.status_code == 200:
break
if response is not None and response.status_code == 200:
break
assert response.status_code == 200

# Create test user
Expand Down
Loading