8000 Renamed delete_url_for to reference_url_for per sigmavirus24 recommen… · pythonthings/github3.py@03e8e5c · GitHub
[go: up one dir, main page]

Skip to content

Commit 03e8e5c

Browse files
Renamed delete_url_for to reference_url_for per sigmavirus24 recommendation
Comment here: sigmavirus24#488
1 parent 572257f commit 03e8e5c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/unit/test_git.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
url_for = create_url_helper('https://api.github.com/repos/octocat/Hello-World/'
77
'trees/9fb037999f264ba9a7fc6274d15fa3ae2ab98312')
88

9-
delete_url_for = create_url_helper('https://api.github.com/repos/octocat/Hello-World/'
10-
'git/refs/heads/featureA')
9+
reference_url_for = create_url_helper('https://api.github.com/repos/'
10+
'octocat/Hello-World/'
11+
'git/refs/heads/featureA')
1112

1213
get_commit_example_data = create_example_data_helper('commit_example')
1314
get_reference_example_data = create_example_data_helper('reference_example')
@@ -64,7 +65,7 @@ class TestReference(UnitHelper):
6465
def test_delete(self):
6566
self.instance.delete()
6667
self.session.delete.assert_called_once_with(
67-
delete_url_for()
68+
reference_url_for()
6869
)
6970

7071
def test_repr(self):
@@ -77,11 +78,11 @@ def test_update(self):
7778
self.instance.update('fakesha', True)
7879
try:
7980
self.session.patch.assert_called_once_with(
80-
delete_url_for(),
81+
reference_url_for(),
8182
data='{"force": true, "sha": "fakesha"}'
8283
)
8384
except AssertionError:
8485
self.session.patch.assert_called_once_with(
85-
delete_url_for(),
86+
reference_url_for(),
8687
data='{"sha": "fakesha", "force": true}'
8788
)

0 commit comments

Comments
 (0)
0