ALBS-334: Make the ability of Pungi to give module_defaults from remote sources #5
@ -50,7 +50,7 @@ class TestPackagesJson(TestCase):
|
|||||||
file_name = PackagesGenerator.get_remote_file_content(
|
file_name = PackagesGenerator.get_remote_file_content(
|
||||||
file_url='fakeurl')
|
file_url='fakeurl')
|
||||||
mock_requests_get.assert_called_once_with(url='fakeurl')
|
mock_requests_get.assert_called_once_with(url='fakeurl')
|
||||||
mock_tempfile.assert_called_once_with(delete=False)
|
mock_tempfile.assert_called_once_with(delete=True)
|
||||||
mock_tempfile.return_value.__enter__().\
|
mock_tempfile.return_value.__enter__().\
|
||||||
write.assert_called_once_with(b'TestContent')
|
write.assert_called_once_with(b'TestContent')
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
|
Loading…
Reference in New Issue
Block a user