We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@pytest.fixture def querybuilder_form_data_factory( # noqa: WPS210 querybuilder_consts: HHConsts, faker_seed: int, ) -> type[QueryBuilderFormFactory]: """Create context-aware fixture for the form data.""" consts = querybuilder_hh_consts def factory(field: Mapping[str, HHMetadata]) -> Callable[[], str]: return lambda: QueryBuilderFormFactory.__random__.choice( list(field.keys()), ) @final class InnerFactory(QueryBuilderFormFactory): # noqa: WPS431 __random_seed__ = faker_seed area = Use(factory(consts.areas)) country = Use(factory(consts.countries)) citizenship = Use(factory(consts.countries)) professional_role = Use(factory(consts.professional_roles)) gender = Use(factory(consts.gender)) employment = Use(factory(consts.employment)) schedule = Use(factory(consts.schedule)) return InnerFactory
The text was updated successfully, but these errors were encountered:
Fix WPS210 not to count nested scopes, closes #3108
WPS210
c1a013d
417730d
No branches or pull requests
The text was updated successfully, but these errors were encountered: