You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or, in my case, picking up cases decorated with @parametrize_with_cases
@parametrize_with_cases('given_config', cases='.', prefix='config_')
def abc_sometesting(given_config):
# do some extra work
return given_config
However, when COLLECTED_CASES has multiple modules (files), it borks on methods using the same name.
E ValueError: Cannot import fixture <function X.config_same_name at 0x1213120c0> from <module '.cases_x' from blah> as it would override an existing symbol in <module 'tests.collecting' from blah>. Please set `@parametrize_with_cases(import_fixtures=False)`
Wrapping them in classes wont help either. Would be nice to have those imported fixtures prefixed with something unique per module (might be a short code, as somewhere that code can be mapped to the full module).
The text was updated successfully, but these errors were encountered:
The flag
import_fixtures
(see also #193) works nice when importing fixtures from an external file.Or, in my case, picking up cases decorated with
@parametrize_with_cases
However, when COLLECTED_CASES has multiple modules (files), it borks on methods using the same name.
Wrapping them in classes wont help either. Would be nice to have those imported fixtures prefixed with something unique per module (might be a short code, as somewhere that code can be mapped to the full module).
The text was updated successfully, but these errors were encountered: