From e75cbfc59fe0081771e3545dfc71a6da052e4c58 Mon Sep 17 00:00:00 2001 From: aymanelsayeed Date: Wed, 13 Dec 2023 13:23:32 +0200 Subject: [PATCH] init commit. --- tests/tests_pkg_one/test_one.py | 23 ++++++++++++++++++++++ tests/tests_pkg_two/test_two.py | 34 +++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 tests/tests_pkg_one/test_one.py create mode 100644 tests/tests_pkg_two/test_two.py diff --git a/tests/tests_pkg_one/test_one.py b/tests/tests_pkg_one/test_one.py new file mode 100644 index 0000000..e287f12 --- /dev/null +++ b/tests/tests_pkg_one/test_one.py @@ -0,0 +1,23 @@ +""" + +Example tests for package one module one + +""" + +import sys +import datetime +import pytest + + +@pytest.mark.xdist_group(name="group1") +class TestsOne: + """ + All tests will run on the same worker if you pass '--dist loadgroup' + """ + def test_one_example_1(self): + print(datetime.datetime.now(), file=sys.stderr) + assert True + + def test_one_example_2(self): + print(datetime.datetime.now(), file=sys.stderr) + assert True \ No newline at end of file diff --git a/tests/tests_pkg_two/test_two.py b/tests/tests_pkg_two/test_two.py new file mode 100644 index 0000000..853ff47 --- /dev/null +++ b/tests/tests_pkg_two/test_two.py @@ -0,0 +1,34 @@ +""" + +Example tests for package two module two + +""" + + +import sys +import datetime +import pytest + + +@pytest.mark.xdist_group(name="group1") +class TestsTwo: + """ + + All tests will run on the same worker if you pass '--dist loadgroup' + + """ + def test_two_example_1(self) -> None: + """ + Example test 1 + :return: None + """ + print(datetime.datetime.now(), file=sys.stderr) + assert True + + def test_two_example_2(self) -> None: + """ + Example test 2 + :return: None + """ + print(datetime.datetime.now(), file=sys.stderr) + assert True