Skip to content

Commit

Permalink
more no cover
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinsulzer committed Sep 16, 2024
1 parent f7ec885 commit abac35f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pybamm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def write_uuid_to_file(config_file):

def read_uuid_from_file(config_file):
# Check if the config file exists
if not config_file.exists():
if not config_file.exists(): # pragma: no cover
return None

# Read the UUID from the config file
Expand All @@ -78,5 +78,5 @@ def read_uuid_from_file(config_file):

config = yaml.safe_load(content)
return config["pybamm"]
except (yaml.YAMLError, ValueError):
except (yaml.YAMLError, ValueError): # pragma: no cover
return None
2 changes: 1 addition & 1 deletion src/pybamm/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def disable():


_opt_out = os.getenv("PYBAMM_OPTOUT_TELEMETRY", "false").lower()
if _opt_out != "false":
if _opt_out != "false": # pragma: no cover
disable()


Expand Down

0 comments on commit abac35f

Please sign in to comment.