Пример #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"])
Пример #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"])
Пример #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"])
Пример #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"])
Пример #5
0
 def test_arg_user_slug():
     monkeypatch.setattr(FitbarkApi, "get_user_profile",
                         self.get_user_profile)
     main(["--user-slug"])
Пример #6
0
 def test_empty():
     main([])