Skip to content

Commit

Permalink
init commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanelsayeed committed Dec 13, 2023
1 parent cfc509b commit e75cbfc
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/tests_pkg_one/test_one.py
Original file line number Diff line number Diff line change
@@ -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
34 changes: 34 additions & 0 deletions tests/tests_pkg_two/test_two.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e75cbfc

Please sign in to comment.