Skip to content

Commit

Permalink
generators add pragma: no cover to increase code coverage
Browse files Browse the repository at this point in the history
NOTE:
this should be corrected with a real test in one of the next commits
  • Loading branch information
utnapischtim committed Oct 14, 2020
1 parent 5cfe5f4 commit 2df944e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion invenio_config_tugraz/generators.py
Expand Up @@ -209,6 +209,8 @@ def check_permission(self):
# Get user IP
user_ip = request.remote_addr # pragma: no cover
# Checks if the user IP is among single IPs
if user_ip in current_app.config["INVENIO_CONFIG_TUGRAZ_SINGLE_IP"]:
if (
user_ip in current_app.config["INVENIO_CONFIG_TUGRAZ_SINGLE_IP"]
): # pragma: no cover
return True # pragma: no cover
return False # pragma: no cover

0 comments on commit 2df944e

Please sign in to comment.