File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 6
6
url_for = create_url_helper ('https://api.github.com/repos/octocat/Hello-World/'
7
7
'trees/9fb037999f264ba9a7fc6274d15fa3ae2ab98312' )
8
8
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' )
11
12
12
13
get_commit_example_data = create_example_data_helper ('commit_example' )
13
14
get_reference_example_data = create_example_data_helper ('reference_example' )
@@ -64,7 +65,7 @@ class TestReference(UnitHelper):
64
65
def test_delete (self ):
65
66
self .instance .delete ()
66
67
self .session .delete .assert_called_once_with (
67
- delete_url_for ()
68
+ reference_url_for ()
68
69
)
69
70
70
71
def test_repr (self ):
@@ -77,11 +78,11 @@ def test_update(self):
77
78
self .instance .update ('fakesha' , True )
78
79
try :
79
80
self .session .patch .assert_called_once_with (
80
- delete_url_for (),
81
+ reference_url_for (),
81
82
data = '{"force": true, "sha": "fakesha"}'
82
83
)
83
84
except AssertionError :
84
85
self .session .patch .assert_called_once_with (
85
- delete_url_for (),
86
+ reference_url_for (),
86
87
data = '{"sha": "fakesha", "force": true}'
87
88
)
You can’t perform that action at this time.
0 commit comments