Exemple #1
0
 def test_restart_apps_by_repo_app(self, fake_get_assembled_specs, fake_get_specs, fake_restart):
     fake_get_assembled_specs.return_value = self.specs
     fake_get_specs.return_value = self.specs
     restart_apps_by_repo(['github.com/app/b'])
     fake_restart.assert_has_calls([call(set(['app-b']))])
Exemple #2
0
 def test_restart_apps_by_repo_lib(self, fake_get_assembled_specs, fake_get_specs, fake_restart):
     fake_get_assembled_specs.return_value = self.specs
     fake_get_specs.return_value = self.specs
     restart_apps_by_repo(['github.com/lib/b'])
     fake_restart.assert_has_calls([call(set(['app-a']), sync=True)])