From ffe241349fcfbab5fc0f1615abe73ff92d1e8b90 Mon Sep 17 00:00:00 2001
From: Mateusz Konieczny <matkoniecz@gmail.com>
Date: Sun, 28 Jul 2024 14:01:54 +0200
Subject: [PATCH] run tests in pre-commit

---
 .pre-commit-config.yaml | 8 ++++++++
 test_processing.py      | 5 +++++
 2 files changed, 13 insertions(+)
 create mode 100644 test_processing.py

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 6a225f4..e4609d9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -17,3 +17,11 @@ repos:
     -   id: check-merge-conflict
     -   id: end-of-file-fixer
     -   id: trailing-whitespace
+-   repo: local
+    hooks:
+      - id: run-tests
+        name: Run tests
+        entry: python3 -m unittest
+        language: system
+        pass_filenames: false
+        stages: [commit]
diff --git a/test_processing.py b/test_processing.py
new file mode 100644
index 0000000..a458e34
--- /dev/null
+++ b/test_processing.py
@@ -0,0 +1,5 @@
+import unittest
+
+class RealityTests(unittest.TestCase):
+    def assert_mathworks(self, tags):
+        self.assertEqual(2 + 1, 3)