move lib tests into subdir

This commit is contained in:
Mike McLean 2017-05-16 17:13:59 -04:00 committed by Tomas Kopecek
parent efa92224ad
commit c4a48efd83
24 changed files with 1 additions and 1 deletions

View file

@ -12,7 +12,7 @@ class TestGetRPMDeps(unittest.TestCase):
@mock.patch('kojihub.get_build')
@mock.patch('koji.pathinfo')
def test_getRPMDeps(self, pi, build, rpm):
pi.build.return_value = os.path.join(os.path.dirname(__file__), '../data/rpms')
pi.build.return_value = os.path.join(os.path.dirname(__file__), '../test_lib/data/rpms')
pi.rpm.return_value = 'test-deps-1-1.fc24.x86_64.rpm'
getRPMDeps = kojihub.RootExports().getRPMDeps
res = getRPMDeps('')