Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
whoarethebritons committed Aug 21, 2019
1 parent a5ef9af commit 8099b21
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/test_appscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,6 @@ def testDeployWithCloudAppScalefile(self):
}
yaml_dumped_contents = yaml.dump(contents)
self.addMockForAppScalefile(appscale, yaml_dumped_contents)
flexmock(appscale)
appscale.should_receive('is_dispatch_yaml').and_return(False)
# finally, mock out the actual appscale-run-instances call
fake_port = 8080
fake_host = 'fake_host'
Expand All @@ -440,6 +438,7 @@ def testDeployWithCloudAppScalefile(self):
AppScaleTools.should_receive('update_indexes')
AppScaleTools.should_receive('update_cron')
AppScaleTools.should_receive('update_queues')
AppScaleTools.should_receive('update_dispatch')
app = '/bar/app'
(host, port) = appscale.deploy(app)
self.assertEquals(fake_host, host)
Expand Down Expand Up @@ -500,8 +499,6 @@ def testDeployWithCloudAppScalefileAndTestFlag(self):
}
yaml_dumped_contents = yaml.dump(contents)
self.addMockForAppScalefile(appscale, yaml_dumped_contents)
flexmock(appscale)
appscale.should_receive('is_dispatch_yaml').and_return(False)
# finally, mock out the actual appscale-run-instances call
fake_port = 8080
fake_host = 'fake_host'
Expand All @@ -511,6 +508,7 @@ def testDeployWithCloudAppScalefileAndTestFlag(self):
AppScaleTools.should_receive('update_indexes')
AppScaleTools.should_receive('update_cron')
AppScaleTools.should_receive('update_queues')
AppScaleTools.should_receive('update_dispatch')
app = '/bar/app'
(host, port) = appscale.deploy(app)
self.assertEquals(fake_host, host)
Expand Down

0 comments on commit 8099b21

Please sign in to comment.