Esempio n. 1
0
 def test_arg_add():
     monkeypatch.setattr(FitbarkApi, "hass_get_token",
                         self.hass_get_token)
     monkeypatch.setattr(FitbarkApi, "hass_add_url", self.hass_add_url)
     monkeypatch.setattr(FitbarkApi, "hass_get_redirect_urls",
                         self.hass_get_redirect_urls)
     main(["-a"])
Esempio n. 2
0
 def test_arg_dog_pic():
     monkeypatch.setattr(FitbarkApi, "get_user_related_dogs",
                         self.get_user_related_dogs)
     monkeypatch.setattr(FitbarkApi, "get_dog_picture",
                         self.get_dog_picture)
     main(["--dog-pic"])
Esempio n. 3
0
 def test_arg_dog():
     monkeypatch.setattr(FitbarkApi, "get_user_related_dogs",
                         self.get_user_related_dogs)
     monkeypatch.setattr(FitbarkApi, "get_dog", self.get_dog)
     main(["--dog"])
Esempio n. 4
0
 def test_arg_user_pic():
     monkeypatch.setattr(FitbarkApi, "get_user_profile",
                         self.get_user_profile)
     monkeypatch.setattr(FitbarkApi, "get_user_picture",
                         self.get_user_picture)
     main(["--user-pic"])
Esempio n. 5
0
 def test_arg_user_slug():
     monkeypatch.setattr(FitbarkApi, "get_user_profile",
                         self.get_user_profile)
     main(["--user-slug"])
Esempio n. 6
0
 def test_empty():
     main([])