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

Trial sharing simulations across tests #1324

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
Lint pass
willGraham01 committed Apr 24, 2024
commit 7230953f742dafd2d3913516603eac23b20182c4
5 changes: 3 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""Collection of shared fixtures"""
from __future__ import annotations
from copy import copy

import os
from copy import copy
from pathlib import Path
from typing import TYPE_CHECKING, List

@@ -17,7 +18,7 @@
healthsystem,
simplified_births,
stunting,
symptommanager
symptommanager,
)

DEFAULT_SEED = 83563095832589325021
2 changes: 1 addition & 1 deletion tests/test_diarrhoea.py
Original file line number Diff line number Diff line change
@@ -7,8 +7,8 @@
from typing import Any, Dict, Literal, Optional

import pandas as pd
from pandas import DateOffset
import pytest
from pandas import DateOffset

from tlo import Date, Module, Simulation, logging
from tlo.analysis.utils import parse_log_file
1 change: 1 addition & 0 deletions tests/test_stunting.py
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@

from .conftest import _BaseSharedSim


def get_sim(seed):
"""Return simulation objection with Stunting and other necessary modules registered."""