Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6368c78

Browse files
committed
Fix the one failing test.
1 parentc65e74e commit6368c78

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎github3/auths.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ def __init__(self, auth, session=None):
1919
#: Returns the Authorization token
2020
self.token=auth.get('token','')
2121
#: App name
22-
self.name=self.app.get('name')or''
22+
self.name=self.app.get('name','')
2323
#: URL about the note
2424
self.note_url=auth.get('note_url')or''
2525
#: Note about the authorization
26-
self.note=auth.get('note','')
26+
self.note=auth.get('note')or''
2727
#: List of scopes this applies to
2828
self.scopes=auth.get('scopes', [])
2929
#: Unique id of the authorization

‎tests/test_auths.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from .baseimportexpect,BaseTest
1+
from .baseimportexpect,expect_str,BaseTest
22
fromdatetimeimportdatetime
33
fromgithub3.authsimportAuthorization
44

@@ -43,10 +43,10 @@ def test_created_at(self):
4343
expect(self.authorization.created_at).isinstance(datetime)
4444

4545
deftest_note(self):
46-
expect(self.authorization.note)>=''
46+
expect_str(self.authorization.note)
4747

4848
deftest_note_url(self):
49-
expect(self.authorization.note_url)>=''
49+
expect_str(self.authorization.note_url)
5050

5151
deftest_scopes(self):
5252
expect(self.authorization.scopes).isinstance(list)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp