From 1d3d8463675c65a457d7024065cfc38ed5e8c764 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Wed, 8 Apr 2020 15:44:27 +0100 Subject: [PATCH] Delete old exception test file --- tests/test_exceptions.py | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 tests/test_exceptions.py diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py deleted file mode 100644 index cc3a0b79..00000000 --- a/tests/test_exceptions.py +++ /dev/null @@ -1,26 +0,0 @@ -from labthings.core import exceptions -import pytest - - -def test_lockerror_valid_code(): - from threading import Lock - - lock = Lock() - - assert exceptions.LockError("ACQUIRE_ERROR", lock) - assert ( - str(exceptions.LockError("ACQUIRE_ERROR", lock)) - == f"ACQUIRE_ERROR: LOCK {lock}: Unable to acquire. Lock in use by another thread." - ) - - -def test_lockerror_invalid_code(): - from threading import Lock - - lock = Lock() - - assert exceptions.LockError("INVALID_ERROR", lock) - assert ( - str(exceptions.LockError("INVALID_ERROR", lock)) - == f"INVALID_ERROR: LOCK {lock}: Unknown error." - )