Skip to content

Commit

Permalink
markers lesson
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen Feng committed Jun 5, 2024
1 parent aecfbc6 commit 3ad86f7
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@
[pytest]
python_files = test_*
python_classes = *Tests
python_functions = test_*
python_functions = test_*

markers =
smoke: marks tests as smoke (deselect with '-m "not smoke"')
body: marks tests as body (deselect with '-m "not body"')
engine: marks tests as engine (deselect with '-m "not engine"')
entertainment: marks tests as entertainment (deselect with '-m "not entertainment"')
door: marks tests as door (deselect with '-m "not door"')
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from pytest import mark


@mark.smoke
@mark.body
class BodyTests:
@mark.door
def test_body_functions_as_expected(self):
assert True

def test_bumber(self):
assert True

def test_windshield(self):
assert True
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from pytest import mark


@mark.smoke
@mark.engine
def test_engine_functions_as_expected():
assert True
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from pytest import mark


@mark.entertainment
def test_entertainment_functions_as_expected():
assert True

0 comments on commit 3ad86f7

Please sign in to comment.