|
|
61f9c33 |
diff --git a/MANIFEST.in b/MANIFEST.in
|
|
|
61f9c33 |
index f6c42b1..844bd37 100644
|
|
|
61f9c33 |
--- a/MANIFEST.in
|
|
|
61f9c33 |
+++ b/MANIFEST.in
|
|
|
61f9c33 |
@@ -6,3 +6,4 @@ include tests/*.py
|
|
|
61f9c33 |
include tests/test_data/*.spec *.gz *.whl *.zip *.egg
|
|
|
61f9c33 |
include tests/test_data/LICENSE
|
|
|
61f9c33 |
include pyp2rpm.1
|
|
|
61f9c33 |
+include mybin.py
|
|
|
61f9c33 |
diff --git a/tests/test_integration.py b/tests/test_integration.py
|
|
|
61f9c33 |
index fe410d1..16fe376 100644
|
|
|
61f9c33 |
--- a/tests/test_integration.py
|
|
|
61f9c33 |
+++ b/tests/test_integration.py
|
|
|
61f9c33 |
@@ -10,7 +10,7 @@ tests_dir = os.path.split(os.path.abspath(__file__))[0]
|
|
|
61f9c33 |
class TestSpec(object):
|
|
|
61f9c33 |
td_dir = '{0}/test_data/'.format(tests_dir)
|
|
|
61f9c33 |
bin_dir = os.path.split(tests_dir)[0] + '/'
|
|
|
61f9c33 |
- exe = 'python {0}mybin.py'.format(bin_dir)
|
|
|
61f9c33 |
+ exe = 'python3 {0}mybin.py'.format(bin_dir)
|
|
|
61f9c33 |
|
|
|
61f9c33 |
def setup_method(self, method):
|
|
|
61f9c33 |
self.env = TestFileEnvironment('{0}/test_output/'.format(tests_dir))
|
|
|
61f9c33 |
@@ -22,6 +22,7 @@ class TestSpec(object):
|
|
|
61f9c33 |
('Jinja2', '-t epel6', 'python-Jinja2_epel6.spec'),
|
|
|
61f9c33 |
('buildkit', '-b2', 'python-buildkit.spec'),
|
|
|
61f9c33 |
])
|
|
|
61f9c33 |
+ @pytest.mark.spectest
|
|
|
61f9c33 |
def test_spec(self, package, options, expected):
|
|
|
61f9c33 |
with open(self.td_dir + expected) as fi:
|
|
|
61f9c33 |
self.spec_content = fi.read()
|
|
|
61f9c33 |
@@ -33,7 +34,7 @@ class TestSpec(object):
|
|
|
61f9c33 |
class TestSrpm(object):
|
|
|
61f9c33 |
td_dir = '{0}/test_data/'.format(tests_dir)
|
|
|
61f9c33 |
bin_dir = os.path.split(tests_dir)[0] + '/'
|
|
|
61f9c33 |
- exe = 'python {0}mybin.py'.format(bin_dir)
|
|
|
61f9c33 |
+ exe = 'python3 {0}mybin.py'.format(bin_dir)
|
|
|
61f9c33 |
|
|
|
61f9c33 |
def setup_method(self, method):
|
|
|
61f9c33 |
self.env = TestFileEnvironment('{0}/test_output/'.format(tests_dir))
|
|
|
61f9c33 |
diff --git a/tests/test_metadata_extractors.py b/tests/test_metadata_extractors.py
|
|
|
61f9c33 |
index 55eb619..bf9453e 100644
|
|
|
61f9c33 |
--- a/tests/test_metadata_extractors.py
|
|
|
61f9c33 |
+++ b/tests/test_metadata_extractors.py
|
|
|
61f9c33 |
@@ -262,7 +262,6 @@ class TestSetupPyMetadataExtractor(object):
|
|
|
61f9c33 |
['BuildRequires', 'python-sphinx']]),
|
|
|
61f9c33 |
(1, 'py_modules', set(['pytest'])),
|
|
|
61f9c33 |
(1, 'packages', set(['_pytest'])),
|
|
|
61f9c33 |
- (1, 'scripts', set(['py.test', 'pytest'])),
|
|
|
61f9c33 |
(1, 'home_page', 'http://pytest.org'),
|
|
|
61f9c33 |
(1, 'summary', 'py.test: simple powerful testing with Python'),
|
|
|
61f9c33 |
(1, 'license', 'MIT license'),
|