Skip to content

Commit bf9c0ce

Browse files
authored
Merge branch 'master' into bug_fixes
2 parents 06eb86f + a1b9f00 commit bf9c0ce

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: python
2+
#python:
3+
# - "2.7"
4+
# - "3.4"
5+
# - "3.5"
6+
# - "3.6"
7+
#install:
8+
# - pip install -r requirements.txt
9+
10+
script: pytest
11+

O365/cal.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ def __init__(self, json=None, auth=None, verify=True):
4040
self.name = json['Name']
4141

4242
self.verify = verify
43+
44+
def __str__(self):
45+
if self.json and 'Name' in self.json:
46+
return self.json['Name']
47+
return "Unnamed calendar"
4348

4449
def __str__(self):
4550
'''Return informal, nicely printable string.'''

requirements.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Principle requirement for the entire library ##
2+
requests
3+
4+
## Required to get OAuth to work ##
5+
oauthlib
6+
requests_oauthlib
7+
8+
## Used for the metaclass functionality ##
9+
future

tests/test_attachment.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import base64
55
from random import randint
66

7-
87
att_rep = open('attachment.json','r').read()
98
att_j = json.loads(att_rep)
109

0 commit comments

Comments
 (0)