diff options
| author | Árni Dagur <arni@dagur.eu> | 2021-06-26 18:52:22 +0000 |
|---|---|---|
| committer | Árni Dagur <arni@dagur.eu> | 2021-06-26 19:10:50 +0000 |
| commit | 822855b20a7864838084a813c457e2eb1f9570d5 (patch) | |
| tree | 81f7c6745c802514458b9c41a3cd6a2eb4c0a4e9 /tests | |
| parent | fb1832feb868a81e2d10a1707c57df4623304313 (diff) | |
Run black code formatter
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_engine.py | 1 | ||||
| -rw-r--r-- | tests/test_exceptions.py | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_engine.py b/tests/test_engine.py index 8a7421c..6aa447f 100644 --- a/tests/test_engine.py +++ b/tests/test_engine.py | |||
| @@ -63,6 +63,7 @@ def test_deserialize_corrupt(tmpdir): | |||
| 63 | with pytest.raises(adblock.DeserializationError): | 63 | with pytest.raises(adblock.DeserializationError): |
| 64 | engine.deserialize(b"abc") | 64 | engine.deserialize(b"abc") |
| 65 | 65 | ||
| 66 | |||
| 66 | def test_serde(): | 67 | def test_serde(): |
| 67 | engine = empty_engine() | 68 | engine = empty_engine() |
| 68 | serialization_result = engine.serialize() | 69 | serialization_result = engine.serialize() |
diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index 497b3ef..becf107 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | import adblock | 1 | import adblock |
| 2 | 2 | ||
| 3 | |||
| 3 | def test_correct_baseclasses(): | 4 | def test_correct_baseclasses(): |
| 4 | assert issubclass(adblock.AdblockException, Exception) | 5 | assert issubclass(adblock.AdblockException, Exception) |
| 5 | assert issubclass(adblock.BlockerException, adblock.AdblockException) | 6 | assert issubclass(adblock.BlockerException, adblock.AdblockException) |
| @@ -7,4 +8,4 @@ def test_correct_baseclasses(): | |||
| 7 | assert issubclass(adblock.DeserializationError, adblock.BlockerException) | 8 | assert issubclass(adblock.DeserializationError, adblock.BlockerException) |
| 8 | assert issubclass(adblock.OptimizedFilterExistence, adblock.BlockerException) | 9 | assert issubclass(adblock.OptimizedFilterExistence, adblock.BlockerException) |
| 9 | assert issubclass(adblock.BadFilterAddUnsupported, adblock.BlockerException) | 10 | assert issubclass(adblock.BadFilterAddUnsupported, adblock.BlockerException) |
| 10 | assert issubclass(adblock.FilterExists, adblock.BlockerException) \ No newline at end of file | 11 | assert issubclass(adblock.FilterExists, adblock.BlockerException) |
