Skip to content

Commit

Permalink
still set S2N_FIPS_MODE in integ tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lrstewart committed Jan 4, 2025
1 parent d7dc3d8 commit 56d5d4d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/integrationv2/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ def pytest_configure(config):
config.addinivalue_line(
"markers", "uncollect_if(*, func): function to unselect tests from parametrization"
)

fips_mode = config.getoption('fips-mode', 0)
if fips_mode == 1:
provider_version = config.getoption('provider-version', None)
if "fips" in provider_version:
set_flag(S2N_FIPS_MODE, True)

set_flag(S2N_PROVIDER_VERSION, config.getoption('provider-version', None))
set_flag(S2N_PROVIDER_VERSION, provider_version)


def pytest_collection_modifyitems(config, items):
Expand Down

0 comments on commit 56d5d4d

Please sign in to comment.