-
Notifications
You must be signed in to change notification settings - Fork 193
Refactor pytest fixtures #510
New issue
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
base: master
Are you sure you want to change the base?
Conversation
… to print the config values
… scores for config store & factory modules
@shivahari we are getting issues related to driver when running tests in Chrome driver
|
@shivahari Another issue i see is with the platform_name, though I am running the test in Linux Machine, its printing the platform_name as windows | test_example_form | |
This
PR
focuses on refactoringconftest.py
module ♻️ by introducing Pythondataclass
for maintaining configurations.The
dataclass
helps group configurations 📃 together and helps remove redundant fixtures.This change introduces two new configuration modules:
The configuration values are collected in the store module and the factory module presents the
conftest
with apt configurations to run the following tests:This changes out of the box implements
dataclass
configuration forBrowserStack
only for remote test execution. I was not able to test againstSauceLabs
and hence did not include it.The test configuration is printed at the start of every test now:
To-Dos after this PR is merged:
dataclass
Zero Page
to unpack thedataclass
configurationdataclass