From 3939e7f34130f398fa3ed805df981d6c27e87575 Mon Sep 17 00:00:00 2001 From: Valentin Sulzer Date: Wed, 2 Oct 2024 23:12:02 -0700 Subject: [PATCH] remove duplicate test --- tests/unit/test_telemetry.py | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 tests/unit/test_telemetry.py diff --git a/tests/unit/test_telemetry.py b/tests/unit/test_telemetry.py deleted file mode 100644 index 45c1260c09..0000000000 --- a/tests/unit/test_telemetry.py +++ /dev/null @@ -1,30 +0,0 @@ -import pytest - -import pybamm -import uuid - - -class TestConfig: - def test_write_read_uuid(self, tmp_path): - # Create a temporary file path - config_file = tmp_path / "config.yml" - - # Call the function to write UUID to file - pybamm.config.write_uuid_to_file(config_file) - - # Check that the file was created - assert config_file.exists() - - # Read the UUID using the read_uuid_from_file function - uuid_dict = pybamm.config.read_uuid_from_file(config_file) - - # Check that the UUID was read successfully - assert uuid_dict is not None - assert "uuid" in uuid_dict - - # Verify that the UUID is valid - - try: - uuid.UUID(uuid_dict["uuid"]) - except ValueError: - pytest.fail("Invalid UUID format")