* Introducing new file 'pytest.ini' a conf file for pytest
* Completly removing conftest.py file
This commit removes the conftest.py file in the root directory, whose's intention is only to add project path to sys.path when pytest is run wihout any arguments.
Which can be replaced with pytest.ini configuration variables.
changes:
- Added pythonpath variable to pytest.ini file
Reference:
- https://docs.pytest.org/en/7.3.x/reference/reference.html#confval-pythonpath
* Explicitly telling pytest to run tests from directory
When it is not given, it recursively searches for testing directories according to the naming conventions and other rules, which takes time. However when explicilty telling pytest which directory to run tests it directly runs tests, no more searching for directories
Changes:
- In pytest.ini file created a testpaths variable and initialized with test, if in future, if more testing directories comes, just adding the corresponding directories should do the work
Reference:
- https://docs.pytest.org/en/7.3.x/reference/reference.html#confval-testpaths
From separate flake run that people seem to not run on their local
machines simply merge it into one commit and make sure that if
anyone runs pytest they also see the flake failures
As such all parameters should be passed properly and all objects
should have proper inheritance thus nothing should be depending
on explicit import order.
There is no functional change in this commit except for moving
the content to proper namespace and adding trivial tests if
deemed worth it
The DEFAULT values from the checks are already initialized by Config
class and as such they no longer are carried there.