-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
Labels
part:testsAffects the unit, integration and performance (benchmarks) testsAffects the unit, integration and performance (benchmarks) testspriority:lowThis should be addressed only if there is nothing else on the tableThis should be addressed only if there is nothing else on the tabletype:enhancementNew feature or enhancement visitble to usersNew feature or enhancement visitble to users
Milestone
Description
What's needed?
The following function is duplicated in a couple of test modules
@pytest.fixture
def fake_time() -> Iterator[time_machine.Coordinates]:
"""Replace real time with a time machine that doesn't automatically tick."""
with time_machine.travel(0, tick=False) as traveller:
yield travellerProposed solution
Move that common/shared functionality into a new module so tests that needed can use it rather than duplicating it.
Use cases
This is just to avoid code redundancy/duplication in tests.
Alternatives and workarounds
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
part:testsAffects the unit, integration and performance (benchmarks) testsAffects the unit, integration and performance (benchmarks) testspriority:lowThis should be addressed only if there is nothing else on the tableThis should be addressed only if there is nothing else on the tabletype:enhancementNew feature or enhancement visitble to usersNew feature or enhancement visitble to users
Type
Projects
Status
Done