Skip to content

Conversation

@vkarak
Copy link
Contributor

@vkarak vkarak commented Apr 8, 2021

  • The temp_runtime fixture that was defined in different files is now replaced by the more general make_exec_ctx fixture and defined inside unittests.fixtures. All unit tests that were making use of the old fixtures are now updated.
  • The unittests.fixtures module now contains only pytest fixtures. The rest utilities are moved to a separate module unittests.utility.
  • Linted the unit tests.

Fixes #1913.
Fixes #1551.

Vasileios Karakasis added 3 commits April 8, 2021 23:38
- The `temp_runtime` fixture that was defined in different files is now replaced
  by the more general `make_exec_ctx` fixture and defined inside
  `unittests.fixtures`. All unit tests that were making use of the old fixtures
  are now updated.
- The `unittests.fixtures` module now contains only pytest fixtures. The rest
  utilities are moved to a separate module `unittests.utility`.
@vkarak vkarak force-pushed the refactor/consolidate-unit-test-fixtures branch from 291667e to 2e1bab6 Compare April 8, 2021 21:39
@teojgo
Copy link
Contributor

teojgo commented Apr 9, 2021

You can also take a look at conftest.py which provides a way of sharing fixtures across multiple files: https://docs.pytest.org/en/stable/fixture.html#conftest-py-sharing-fixtures-across-multiple-files

@vkarak vkarak force-pushed the refactor/consolidate-unit-test-fixtures branch from 519b307 to ee4e515 Compare April 9, 2021 08:59
@vkarak
Copy link
Contributor Author

vkarak commented Apr 9, 2021

@jenkins-cscs retry daint

@vkarak vkarak merged commit 69dff6d into reframe-hpc:master Apr 9, 2021
@vkarak vkarak deleted the refactor/consolidate-unit-test-fixtures branch April 9, 2021 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix unit test fixture to create a temporary runtime in unit tests Consolidate the different unit test fixtures

3 participants