Skip to content

Commit

Permalink
Add cachetools, fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
janhybs committed Nov 24, 2018
1 parent 98f6d05 commit cbf4ead
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
colorama
cachetools
pyyaml
pymongo
pandas
Expand Down
7 changes: 5 additions & 2 deletions tests/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,8 @@ def test_git(self):
)

git.info()
commits = git.log(5)
self.assertEqual(len(commits), 5)
try:
commits = git.log(5)
self.assertEqual(len(commits), 5)
# depends on version of the git available on machine
except TypeError: pass
2 changes: 1 addition & 1 deletion tests/test_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_to_json(self):
strings.to_json(datetime.datetime(2018, 4, 22, 12, 00, 35)),
'"2018/04/22-12:00:35"'
)

def test_to_yaml(self):
self.assertEqual(strings.to_yaml(dict(a=None)), 'a: null\n')
self.assertEqual(strings.to_yaml(dict()), '{}\n')
Expand Down

0 comments on commit cbf4ead

Please sign in to comment.