diff options
| author | Michael Merickel <michael@merickel.org> | 2018-10-14 23:16:48 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2018-10-14 23:46:11 -0500 |
| commit | dd3cc81f75dcb5ff96e0751653071722a15f46c2 (patch) | |
| tree | 7cfd6140211a21dedd2ddfeb4aa77b7ff4339fa9 /tests/test_scaffolds/test_copydir.py | |
| parent | eadaee315eb142d1537d617da58343e3d7f1df0a (diff) | |
| download | pyramid-dd3cc81f75dcb5ff96e0751653071722a15f46c2.tar.gz pyramid-dd3cc81f75dcb5ff96e0751653071722a15f46c2.tar.bz2 pyramid-dd3cc81f75dcb5ff96e0751653071722a15f46c2.zip | |
fix the tests to import from the tests package instead of pyramid.tests
Diffstat (limited to 'tests/test_scaffolds/test_copydir.py')
| -rw-r--r-- | tests/test_scaffolds/test_copydir.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/test_scaffolds/test_copydir.py b/tests/test_scaffolds/test_copydir.py index 1e92b3c36..915cc5033 100644 --- a/tests/test_scaffolds/test_copydir.py +++ b/tests/test_scaffolds/test_copydir.py @@ -9,7 +9,7 @@ class Test_copy_dir(unittest.TestCase): from pyramid.compat import NativeIO self.dirname = tempfile.mkdtemp() self.out = NativeIO() - self.fixturetuple = ('pyramid.tests.test_scaffolds', + self.fixturetuple = ('tests.test_scaffolds', 'fixture_scaffold') def tearDown(self): @@ -34,7 +34,7 @@ class Test_copy_dir(unittest.TestCase): self.assertTrue( 'Copying fixture_scaffold/+package+/__init__.py_tmpl to' in result) source = pkg_resources.resource_filename( - 'pyramid.tests.test_scaffolds', + 'tests.test_scaffolds', 'fixture_scaffold/+package+/__init__.py_tmpl') target = os.path.join(self.dirname, 'mypackage', '__init__.py') with open(target, 'r') as f: @@ -55,7 +55,7 @@ class Test_copy_dir(unittest.TestCase): self.assertTrue('Creating' in result) self.assertTrue('Copying __init__.py_tmpl to' in result) source = pkg_resources.resource_filename( - 'pyramid.tests.test_scaffolds', + 'tests.test_scaffolds', 'fixture_scaffold/+package+/__init__.py_tmpl') target = os.path.join(self.dirname, 'mypackage', '__init__.py') with open(target, 'r') as f: @@ -328,8 +328,7 @@ class Test_query_interactive(unittest.TestCase): from pyramid.compat import NativeIO self.dirname = tempfile.mkdtemp() self.out = NativeIO() - self.fixturetuple = ('pyramid.tests.test_scaffolds', - 'fixture_scaffold') + self.fixturetuple = ('tests.test_scaffolds', 'fixture_scaffold') self.src_content = """\ These are not the droids that you are looking for.""" |
