From a01349bf186f0faa795ae7e2ab0773263d984d7b Mon Sep 17 00:00:00 2001
From: Andrew Conlin <andrew@andrewconl.in>
Date: Wed, 18 Dec 2024 16:15:49 +0000
Subject: [PATCH] [2024-12-18] Move toc before tic test to its own test file

---
 tests/testInitSyntax.py   | 4 ----
 tests/testTocBeforeTic.py | 7 +++++++
 2 files changed, 7 insertions(+), 4 deletions(-)
 create mode 100644 tests/testTocBeforeTic.py

diff --git a/tests/testInitSyntax.py b/tests/testInitSyntax.py
index 97b7557..15d0a0b 100644
--- a/tests/testInitSyntax.py
+++ b/tests/testInitSyntax.py
@@ -34,10 +34,6 @@ class testInvalid:
         with pytest.raises(Exception):
             t.tic()
 
-    def testTocBeforeTic(self, t):
-        with pytest.raises(Exception):
-            t.toc()
-
 
 @pytest.mark.parametrize("sleepTime", [0.05, 0.5, 1])
 class testAccuracy:
diff --git a/tests/testTocBeforeTic.py b/tests/testTocBeforeTic.py
new file mode 100644
index 0000000..8f886ff
--- /dev/null
+++ b/tests/testTocBeforeTic.py
@@ -0,0 +1,7 @@
+import pytest
+import tictoc
+
+def testTocBeforeTic():
+    with pytest.raises(Exception):
+        t = tictoc.init()
+        t.toc()