Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Run setup/teardown once per function
Browse files Browse the repository at this point in the history
  • Loading branch information
EricMichaelSmith committed Dec 8, 2020
1 parent 726d1df commit 9732bd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions tests/crowdsourcing/tasks/fast_acute/test_base_fast_acute.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,10 @@ class TestBaseFastAcute(AbstractFastAcuteTest):
Test the base Fast ACUTE crowdsourcing task.
"""

@pytest.fixture(scope="module")
@pytest.fixture(scope="function")
def setup_teardown(self):
"""
Call code to set up and tear down tests.
Run this only once because we'll be running all Fast ACUTE code before
checking any results.
"""

self._setup()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,10 @@ class TestQFunctionFastAcute(AbstractFastAcuteTest):
Test the Q-function Fast ACUTE crowdsourcing task.
"""

@pytest.fixture(scope="module")
@pytest.fixture(scope="function")
def setup_teardown(self):
"""
Call code to set up and tear down tests.
Run this only once because we'll be running all Fast ACUTE code before
checking any results.
"""

self._setup()
Expand Down

0 comments on commit 9732bd7

Please sign in to comment.