Commit 0e00ca8 fix tests after namespace change

2 files Authored and Committed by maxamillion 7 months ago
fix tests after namespace change

After the namespace change from 'docker' to 'container' in DistGit
the unit tests were failing. This fixes that.

Signed-off-by: Adam Miller <maxamillion@fedoraproject.org>

    
1 @@ -1,3 +1,3 @@
2   #!/bin/bash
3   
4 - PYTHONPATH=flr py.test $*
5 + PYTHONPATH=flr py.test -vvv $*
 1 @@ -30,7 +30,7 @@
 2   # (because why not?)
 3   aname = 'foo'
 4   branch = 'f9000'
 5 - distgit_ns = 'docker'
 6 + distgit_ns = 'container'
 7   
 8   fedpkg_cmd = 'fedpkg'
 9   koji_cmd = 'koji'
10 @@ -180,9 +180,11 @@
11       from mock import call
12       assert mock_subproc_call.mock_calls == [
13           call(
14 -             [fedpkg_cmd, '', '', 'clone', 'docker/foo'],
15 -             log_msg='Cloning docker/foo distgit repo'
16 +             [fedpkg_cmd, '', '', 'clone', '{}/foo'.format(distgit_ns)],
17 +             ignore_failure=True,
18 +             log_msg='Cloning {}/foo distgit repo'.format(distgit_ns)
19           ),
20 +         call().__nonzero__(),
21           call(
22               [fedpkg_cmd, '', '', 'switch-branch', 'f9000'],
23               log_msg='Switching branch to f9000'
24 @@ -226,9 +228,11 @@
25       from mock import call
26       assert mock_subproc_call.mock_calls == [
27           call(
28 -             [fedpkg_cmd, '', '', 'clone', 'docker/foo'],
29 -             log_msg='Cloning docker/foo distgit repo'
30 +             [fedpkg_cmd, '', '', 'clone', '{}/foo'.format(distgit_ns)],
31 +             ignore_failure=True,
32 +             log_msg='Cloning {}/foo distgit repo'.format(distgit_ns)
33           ),
34 +         call().__nonzero__(),
35           call(
36               [fedpkg_cmd, '', '', 'switch-branch', 'f9000'],
37               log_msg='Switching branch to f9000'
38 @@ -269,9 +273,11 @@
39       from mock import call
40       assert mock_subproc_call.mock_calls == [
41           call(
42 -             [fedpkg_cmd, '--user', 'testuser', 'clone', 'docker/foo'],
43 -             log_msg='Cloning docker/foo distgit repo'
44 +             [fedpkg_cmd, '--user', 'testuser', 'clone', '{}/foo'.format(distgit_ns)],
45 +             ignore_failure=True,
46 +             log_msg='Cloning {}/foo distgit repo'.format(distgit_ns)
47           ),
48 +         call().__nonzero__(),
49           call(
50               [fedpkg_cmd, '--user', 'testuser', 'switch-branch', 'f9000'],
51               log_msg='Switching branch to f9000'