Skip to content

Commit faeb682

Browse files
authored
Merge pull request #7 from ogajduse/date-deps-n-fix-import
Python and pytest compatibility fixes
2 parents b31d108 + d753c6a commit faeb682

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

pytest_fixture_tools/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
import errno
66

7-
from _pytest.python import getlocation
7+
from _pytest.compat import getlocation
88
from collections import defaultdict
99

1010
import pydot

requirements-testing.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
pytest-pep8
21
pytest-cov
32
pytest-cache

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def run_tests(self):
5252
] + [('Programming Language :: Python :: %s' % x) for x in '2.6 2.7 3.0 3.1 3.2 3.3'.split()],
5353
cmdclass={'test': ToxTestCommand},
5454
install_requires=[
55-
'pytest', 'pydot'
55+
'pytest', 'pydot', 'py'
5656
],
5757
# the following makes a plugin available to py.test
5858
entry_points={

tests/test_fixtrue_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def arg1(request):
2222
sub1.join("test_in_sub1.py").write("def test_1(arg1): pass")
2323
sub2.join("test_in_sub2.py").write("def test_2(arg1): pass")
2424

25-
result = testdir.runpytest_subprocess('--fixture-graph', '-s')
25+
result = testdir.runpytest_subprocess('--fixture-graph', '-s', '--fixture-graph-output-type', 'dot')
2626

2727
result.stdout.fnmatch_lines("created artifacts/fixture-graph-sub1-test_in_sub1.py__test_1.dot.")
2828
result.stdout.fnmatch_lines('created artifacts/fixture-graph-sub1-sub2-test_in_sub2.py__test_2.dot.')

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ deps =
1818
hg+https://bitbucket.org/hpk42/pytest
1919

2020
[pytest]
21-
pep8maxlinelength=120
22-
addopts = pytest_fixture_tools tests --pep8
21+
addopts = pytest_fixture_tools tests

0 commit comments

Comments
 (0)