| |
@@ -88,6 +88,29 @@
|
| |
assert "RPMs which dist tag changed" not in output
|
| |
assert "RPMs Reused" not in output
|
| |
|
| |
+ def test_cli_colon_delimited(self, mbs_json_res, capsys):
|
| |
+ """ Test that we can handle colon delimited NSVC. """
|
| |
+
|
| |
+ module1_res, module2_res = generate_module_res(mbs_json_res)
|
| |
+
|
| |
+ with requests_mock.mock() as mock_http:
|
| |
+ mock_http.register_uri("GET", module1_url, json=module1_res)
|
| |
+ mock_http.register_uri("GET", module2_url, json=module2_res)
|
| |
+
|
| |
+ cli_cmd = [
|
| |
+ 'module_diff',
|
| |
+ 'mariadb:10.2:20171019133930:00000000',
|
| |
+ 'mariadb:10.2:20171103103655:00000000'
|
| |
+ ]
|
| |
+
|
| |
+ with mock.patch("sys.argv", cli_cmd):
|
| |
+ main()
|
| |
+ output = capsys.readouterr()[0]
|
| |
+
|
| |
+ check_common_output(output)
|
| |
+ assert "RPMs which dist tag changed" not in output
|
| |
+ assert "RPMs Reused" not in output
|
| |
+
|
| |
def test_cli_dist_option(self, mbs_json_res, capsys):
|
| |
"""
|
| |
Testing option --dist which displays RPMs which changed their dist tag.
|
| |
... because that's how things work now.