Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
# Ensure that all flavours are run to completion even if an other flavor failed
fail-fast: false

Expand Down
21 changes: 16 additions & 5 deletions tests/mock_constructor_testslide.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,24 @@ def can_access_class_attributes(self):
self.assertEqual(original_target_class.CLASS_ATTR, "CLASS_ATTR")

@context.example
def can_call_class_methods(self):
for name in [
"regular_class_method",
def can_call_regular_class_method(self):
self.assertEqual(
original_target_class.regular_class_method(), "regular_class_method"
)

@context.example
def can_call_p2_super_class_method(self):
self.assertEqual(
original_target_class.p2_super_class_method(),
"p2_super_class_method",
)

@context.example
def can_call_p3_super_class_method(self):
self.assertEqual(
original_target_class.p3_super_class_method(),
"p3_super_class_method",
]:
self.assertEqual(getattr(original_target_class, name)(), name)
)

@context.example
def can_call_static_methods(self):
Expand Down