scaevola 1.0.15__py3-none-any.whl → 1.0.16__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,34 @@
1
+ import unittest
2
+ from typing import *
3
+
4
+ from scaevola.core import Scaevola
5
+
6
+
7
+ class Foo(Scaevola):
8
+ __slots__ = ("x", "y")
9
+
10
+
11
+ class Bar(Scaevola):
12
+ pass
13
+
14
+
15
+ class TestSlots(unittest.TestCase):
16
+ def test_foo(self: Self) -> None:
17
+ foo: Foo = Foo()
18
+ foo.x = 4
19
+ foo.y = 2
20
+ self.assertEqual(foo.x, 4)
21
+ self.assertEqual(foo.y, 2)
22
+ with self.assertRaises(AttributeError):
23
+ foo.z = 0
24
+
25
+ def test_bar(self: Self) -> None:
26
+ bar: Bar = Bar()
27
+ bar.x = 4
28
+ bar.y = 2
29
+ self.assertEqual(bar.x, 4)
30
+ self.assertEqual(bar.y, 2)
31
+
32
+
33
+ if __name__ == "__main__":
34
+ unittest.main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scaevola
3
- Version: 1.0.15
3
+ Version: 1.0.16
4
4
  Summary: This project provides a class with preset right handed magic methods.
5
5
  Author-email: Johannes <johannes.programming@gmail.com>
6
6
  License: The MIT License (MIT)
@@ -3,8 +3,9 @@ scaevola/core.py,sha256=gsYBvxXSDBuCpBldIpoasAPNELzYbjNdDc7_Z9pJfx8,2386
3
3
  scaevola/tests/__init__.py,sha256=QhiVlxbRnZlt4CSCc4yAPIRHo-BVzKpxzl80CmZC_Js,256
4
4
  scaevola/tests/test_0.py,sha256=K5M1B5GfH5gX3ZqHXtyCd5WZrI3SsZNSKDon5z13KQI,1088
5
5
  scaevola/tests/test_op.py,sha256=OfXTuqdPouiZontb-aVZ5r33uTYijibkpO0Kmf4veKU,5115
6
- scaevola-1.0.15.dist-info/licenses/LICENSE.txt,sha256=QwqYepQwTN5xG57cngKt6xxYD9z9hw9d3lcI8zSLiNg,1074
7
- scaevola-1.0.15.dist-info/METADATA,sha256=4KNzR4X9PoD6v5Jo3LRnhwQYp4_u9KZGkubldn2JM6Q,2334
8
- scaevola-1.0.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
- scaevola-1.0.15.dist-info/top_level.txt,sha256=1oM62lKpwPWVxHtGCB2tN-TIs0bzZaSkB9dlI3Eoesw,9
10
- scaevola-1.0.15.dist-info/RECORD,,
6
+ scaevola/tests/test_slots.py,sha256=SHRkHwHRpW0NegtDbmG7yXW-QE_MLWiWeYKJln1efZU,651
7
+ scaevola-1.0.16.dist-info/licenses/LICENSE.txt,sha256=QwqYepQwTN5xG57cngKt6xxYD9z9hw9d3lcI8zSLiNg,1074
8
+ scaevola-1.0.16.dist-info/METADATA,sha256=qMAb0FmiqDIpJ8yTevzC4_9pwqP4eqg5k0FVgiCrbe8,2334
9
+ scaevola-1.0.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
10
+ scaevola-1.0.16.dist-info/top_level.txt,sha256=1oM62lKpwPWVxHtGCB2tN-TIs0bzZaSkB9dlI3Eoesw,9
11
+ scaevola-1.0.16.dist-info/RECORD,,