refactor for independent test dirs (#7)
* make it so that the actual tests can be moved anywhere, for example in abra recipe repos -> major refactoring with pytest test discovery magic * create RUNNER_DICT dynamically with importlib -> none of the tests are hardcoded, more tests can be added by placing a folder * autoload fixtures with pytest plugins * add URL fixture to navigate on web pages. Includes url parser based on python urllib to generate correct links * fix nextcloud setups and tests * add email groundwork with imbox Reviewed-on: local-it-infrastructure/e2e_tests#7 Co-authored-by: Daniel <d.brummerloh@gmail.com> Co-committed-by: Daniel <d.brummerloh@gmail.com>
This commit is contained in:
parent
3fa10aaa69
commit
f9c21c6e6b
45 changed files with 373 additions and 228 deletions
|
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "locit-testing"
|
||||
version = "0.1.0"
|
||||
name = "abratest"
|
||||
version = "0.2.0"
|
||||
requires-python = "~=3.11"
|
||||
dependencies = [
|
||||
"pytest == 7.4.3",
|
||||
|
|
@ -8,11 +8,11 @@ dependencies = [
|
|||
|
||||
[project.optional-dependencies]
|
||||
dev = [
|
||||
"ruff >= 0.1.3",
|
||||
"ruff >= 0.1.7",
|
||||
]
|
||||
|
||||
[tool.setuptools]
|
||||
package-dir = {"" = "src"}
|
||||
package-dir = {"" = "abratest"}
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 120
|
||||
|
|
@ -20,4 +20,4 @@ target-version = "py311"
|
|||
|
||||
[tool.pytest.ini_options]
|
||||
python_functions = "test_* setup_*"
|
||||
norecursedirs = "previous-work src"
|
||||
norecursedirs = "previous-work recipes"
|
||||
Loading…
Add table
Add a link
Reference in a new issue