Skip to content

Commit fae728e

Browse files
committed
Tweaks to version, authors, minor test reorg.
1 parent 24e00cc commit fae728e

File tree

6 files changed

+17
-15
lines changed

6 files changed

+17
-15
lines changed

AUTHORS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Frank Tobia <[email protected]>
2+
Sergei Chipiga <[email protected]>

pytest_ordering/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
from ._version import __version__
23

34
import pytest
45

File renamed without changes.

pytest_ordering/author.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

tests/test_misc.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# -*- coding: utf-8 -*-
2+
import re
3+
4+
import pytest_ordering
5+
6+
7+
def test_version_exists():
8+
assert hasattr(pytest_ordering, '__version__')
9+
10+
11+
def test_version_valid():
12+
assert re.match(r'[0-9]+\.[0-9]+(\.[0-9]+)?$',
13+
pytest_ordering.__version__)

tests/test_ordering.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
# -*- coding: utf-8 -*-
2-
32
import re
43

54
import pytest
6-
import pytest_ordering.author
7-
import pytest_ordering.version
85

9-
pytest_plugins = ["pytester"]
6+
pytest_plugins = ['pytester']
107

118

129
@pytest.fixture
@@ -187,12 +184,3 @@ def test_run_marker_registered(capsys):
187184
pytest.main('--markers')
188185
out, err = capsys.readouterr()
189186
assert '@pytest.mark.run' in out
190-
191-
192-
def test_version_valid():
193-
assert re.match(r'[0-9]+\.[0-9]+(\.[0-9]+)?$',
194-
pytest_ordering.version.__version__)
195-
196-
197-
def test_author_present():
198-
assert hasattr(pytest_ordering.author, '__author__')

0 commit comments

Comments
 (0)