Exemplo n.º 1
0
 def test_uninitialized(self):
     cwd = os.getcwd()
     os.chdir('/')
     with self.assertRaises(exceptions.UninitializedError):
         action = Action(os.getcwd())
     os.chdir(
         cwd
     )  # change back to this directory so rest of the tests will work
Exemplo n.º 2
0
 def test_doc_manager(self):
     create_config()
     action = Action(os.getcwd())
     assert action.doc_manager
     action.close()
     cleanup()
Exemplo n.º 3
0
 def test_api(self):
     create_config()
     action = Action(os.getcwd())
     assert action.api
     action.close()
     cleanup()
Exemplo n.º 4
0
 def test_community_id(self):
     create_config()
     action = Action(os.getcwd())
     assert action.community_id
     action.close()
     cleanup()
Exemplo n.º 5
0
 def test_path(self):
     create_config()
     action = Action(os.getcwd())
     assert action.path
     action.close()
     cleanup()
Exemplo n.º 6
0
 def test_project_id(self):
     create_config()
     action = Action(os.getcwd())
     assert action.project_id
     action.close()
     cleanup()
Exemplo n.º 7
0
 def test_access_token(self):
     create_config()
     action = Action(os.getcwd())
     assert action.access_token
     action.close()
     cleanup()