Skip to content

Commit

Permalink
Linting results
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlrt committed Nov 22, 2023
1 parent aea56dd commit 0aba79d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
version = 1

test_patterns = ["tests/**"]

[[analyzers]]
name = "shell"

Expand Down
8 changes: 4 additions & 4 deletions specs/createspecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ def populate_spec(network, outf):
template=template.replace("#!requestBodies!#", str(pathlib.Path(apirequestBodiesfile).read_text()).rstrip())
template=template.replace("#!schemas!#", str(pathlib.Path(apischemafile).read_text()).rstrip())
print("Creating " + outf + " using koiosapi.yaml as template...")
for e in examples["params"]:
template=template.replace(str("##" + str(e) + "_param##"), str(examples["params"][e][str(network)]))
for e in examples["requestBodies"]:
template=template.replace("##" + str(e) + "_rb##", str(examples["requestBodies"][e][str(network)]))
for ep in examples["params"]:
template=template.replace(str("##" + str(ep) + "_param##"), str(examples["params"][ep][str(network)]))
for erb in examples["requestBodies"]:
template=template.replace("##" + str(erb) + "_rb##", str(examples["requestBodies"][erb][str(network)]))
with open(outf, 'w') as f:
f.write(template)

Expand Down
2 changes: 0 additions & 2 deletions tests/not_empty_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@
def not_empty_response(response, case):
if response.status_code != 200 or response.text == "[]":
raise AssertionError("Error occurred ---> status_code: " + str(response.status_code) + ", text returned : " + str(response.text) )
else:
return True
1 change: 0 additions & 1 deletion tests/test_asset_address_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def test_asset_list_endpoint(api_schema, local_url, compare_url):

@pytest.mark.order(2)
def test_address_info_endpoint(api_schema, compare_url, local_url):
global random_asset_address

address_info_response = get_request(
f"{local_url}/address_info?_address={random_asset_address}"
Expand Down
1 change: 0 additions & 1 deletion tests/test_epoch_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def test_epoch_info_endpoint(api_schema, local_url, compare_url):

@pytest.mark.order(2)
def test_epoch_params_endpoint(api_schema, compare_url, local_url):
global random_epoch_no

epoch_params_response = get_request(
f"{local_url}/epoch_params?_epoch_no={random_epoch_no}"
Expand Down
1 change: 0 additions & 1 deletion tests/test_pool_account_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def test_pool_list_endpoint(api_schema, local_url, compare_url):

@pytest.mark.order(2)
def test_account_info_endpoint(api_schema, local_url, compare_url):
global pool_reward_address

account_info_response = get_request(
f"{local_url}/account_info?_address={pool_reward_address}"
Expand Down

0 comments on commit 0aba79d

Please sign in to comment.