Commit 9d75ee4 committed Mar 3, 2025 · 0 / 5
1 parent 06ea07a commit 9d75ee4 Copy full SHA for 9d75ee4
File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,13 @@ def test_virl_pull_invalid_repo(self):
21
21
with requests_mock .mock () as m :
22
22
# Mock the request to return what we expect from the API.
23
23
topo_url = "https://raw.githubusercontent.com/"
24
- topo_url += "doesnt/exist/master /topology.yaml"
24
+ topo_url += "doesnt/exist/main /topology.yaml"
25
25
m .get (topo_url , status_code = 400 )
26
26
virl = self .get_virl ()
27
27
runner = CliRunner ()
28
28
result = runner .invoke (virl , ["pull" , "doesnt/exist" ])
29
- expected = "Pulling from doesnt/exist on branch master\n Error pulling " "doesnt/exist - repo or file not found\n "
29
+ expected = (
30
+ "Pulling topology.yaml from doesnt/exist on branch main\n Error pulling topology.yaml from doesnt/exist on branch "
31
+ "main - repo, file, or branch not found\n "
32
+ )
30
33
self .assertEqual (result .output , expected )
You can’t perform that action at this time.
0 commit comments