Skip to content

Commit

Permalink
Update integration_tests/src/main/python/conftest.py
Browse files Browse the repository at this point in the history
Clean up by using default values

Co-authored-by: Gera Shegalov <gshegalov@nvidia.com>
  • Loading branch information
abellina and gerashegalov authored Dec 28, 2023
1 parent 7964c5f commit a9c67a3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions integration_tests/src/main/python/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,9 @@ def pytest_configure(config):
# whether that override is marked as `permanent`
def get_effective_seed(item, datagen_overrides):
if datagen_overrides:
is_permanent = False
# if the override is marked as permanent it will always override its seed
# else, if the user provides a seed via DATAGEN_SEED, we will override.
try:
is_permanent = datagen_overrides.kwargs["permanent"]
except KeyError:
pass
is_permanent = datagen_overrides.kwargs.get("permanent", False)

override_condition = datagen_overrides.kwargs.get('condition', True)
do_override = (
Expand Down

0 comments on commit a9c67a3

Please sign in to comment.