Mock out the tempmon client restart action when testing
This commit is contained in:
parent
d42f6a065b
commit
a0ba89ecfd
|
@ -24,7 +24,10 @@ class TempmonClientView(BaseTempmonClientView):
|
||||||
return client.config_key == 'demo'
|
return client.config_key == 'demo'
|
||||||
|
|
||||||
def get_restart_cmd(self, client):
|
def get_restart_cmd(self, client):
|
||||||
|
if self.rattail_config.production():
|
||||||
return ['ssh', 'demo.rattailproject.org', 'sudo service demo-tempmon-client restart']
|
return ['ssh', 'demo.rattailproject.org', 'sudo service demo-tempmon-client restart']
|
||||||
|
# just mock it out when testing
|
||||||
|
return ['sleep', '2']
|
||||||
|
|
||||||
|
|
||||||
class TempmonProbeView(BaseTempmonProbeView):
|
class TempmonProbeView(BaseTempmonProbeView):
|
||||||
|
|
Loading…
Reference in a new issue