Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
fixed some errors in the test files
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Hilborn authored and Michael-Hilborn committed Jul 23, 2021
1 parent 4e1d3aa commit a98dd02
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions tests/test_delete_edge.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,6 @@ class MockDeleteTriggers:
def json():
return {"success": True}

def edge_function():
return create_edge_function.EdgeFunctionCreator(
crn="testString",
app_url="test-url.com",
apikey="testString",
zone_id="testString",
domain="test-domain.com",
token="test-token"
)

def test_fail_delete_action(monkeypatch):
sample_inputs = StringIO('y\n')
monkeypatch.setattr('sys.stdin', sample_inputs)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_delete_glb.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class MockGlobalLoadBalancerV1DNE:

# create_load_balancer_monitor() creates a fake Load Balancer Monitor for testing
def delete_load_balancer(self, load_balancer_identifier):
return DetailedResponse(response={"result": { "id": glb_id}})
return DetailedResponse(response={"result": { "id": load_balancer_identifier}})

def list_all_load_balancers(self):
return DetailedResponse(response={"result": []})
Expand Down

0 comments on commit a98dd02

Please sign in to comment.