8000 Remove test for original_protection in listing branches · pythonthings/github3.py@ca631f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit ca631f8

Browse files
committed
Remove test for original_protection in listing branches
It may not always be there, so stop testing for it's existence and move on.
1 parent 99bdbb9 commit ca631f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/test_repos_repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def test_protected_branches(self):
9292
with self.recorder.use_cassette(cassette_name):
9393
repository = self.gh.repository('sigmavirus24', 'github3.py')
9494
assert repository is not None
95-
assert all(b.original_protection['enabled'] is True
95+
assert all(isinstance(b, github3.repos.branch.ShortBranch)
9696
43C0 for b in repository.branches(protected=True))
9797

9898
def test_code_frequency(self):

0 commit comments

Comments
 (0)
0