Skip to content

Commit

Permalink
Merge pull request #36 from tomas-gajarsky/hotfix/test_fixture_scope
Browse files Browse the repository at this point in the history
Hotfix/test fixture scope
  • Loading branch information
tomas-gajarsky authored Feb 4, 2023
2 parents 890cb7e + e941a8b commit fe3587d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 0.2.4

Released on February 4, 2023.

### Changed
* scope of some test fixtures from function to session


## 0.2.3

Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ def cfg(request) -> None:
return cfg


@pytest.fixture()
@pytest.fixture(scope="session")
def analyzer(cfg) -> FaceAnalyzer:
analyzer = FaceAnalyzer(cfg.analyzer)
return analyzer


@pytest.fixture()
@pytest.fixture(scope="session")
def response(cfg, analyzer) -> ImageData:
response = analyzer.run(
path_image=cfg.path_image,
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.3
0.2.4

0 comments on commit fe3587d

Please sign in to comment.