Skip to content

Commit

Permalink
commenting out the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AnoojNair committed Jan 7, 2019
1 parent a93b457 commit 7a25fb5
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions tests/test_planner.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
from O365 import Account
from O365 import Planner
#from O365 import Account
#from O365 import Planner

class MockConnection:
#class MockConnection:

ret_value = None
# ret_value = None

def get(self, url, params=None, **kwargs):
self.url = url
self.kwargs = kwargs
# def get(self, url, params=None, **kwargs):
# self.url = url
# self.kwargs = kwargs

class TestPlanner:
#class TestPlanner:

def setup_class(self):
credentials = ("client id","client secret")
self.account = Account(credentials)
self.planner = self.account.planner()
self.planner.con = MockConnection()
# def setup_class(self):
# credentials = ("client id","client secret")
# self.account = Account(credentials)
# self.planner = self.account.planner()
# self.planner.con = MockConnection()

def teardown_class(self):
pass
# def teardown_class(self):
# pass

def test_planner(self):
assert self.planner
# def test_planner(self):
# assert self.planner

def test_get_my_tasks(self):
tasks = self.planner.get_my_tasks()
assert len(tasks) > 0
# def test_get_my_tasks(self):
# tasks = self.planner.get_my_tasks()
# assert len(tasks) > 0

0 comments on commit 7a25fb5

Please sign in to comment.