-
Notifications
You must be signed in to change notification settings - Fork 4
Conversation
tests/e2e/conftest.py
Outdated
|
||
from . import settings | ||
|
||
DATA_FIXTURES_DIR = Path(__file__).resolve().parent.parent / "fixtures" | ||
|
||
|
||
def destroy_source(source): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could just pass a name here and rename this to something like destroy_source_by_name since that's what this function is specificaly doing ? Or I don't know if it would just work to set autouse=True (with mimic_mapping as an argument) no need to call it in uploaded_mapping then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're right, I used a fixture instead!
|
||
|
||
@pytest.fixture(scope="session") | ||
def batch(uploaded_mapping): | ||
# Send Patient and Encounter batch | ||
batch = send_batch(uploaded_mapping) | ||
|
||
while True: | ||
start_time = time() | ||
while time() < start_time + settings.BATCH_DURATION_TIMEOUT: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Description
Fix many small issues on e2e tests:
failed_counters
mechanism.Definition of Done
Tests
Launched e2e tests mulltiple times on testy