Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code maintenance: Split contents of wakepy.core.activation + put WakepyFakeSuccess into _testing module #259

Merged
merged 31 commits into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
d266c80
fix typo in docstring
fohrloop Apr 16, 2024
b8a771c
split ActivationResult and WakepyFakeSuccess into their own modules
fohrloop Apr 16, 2024
5f14b47
update Method.mode docstring
fohrloop Apr 16, 2024
e8d7e35
update _method_registry docstring
fohrloop Apr 16, 2024
bff39d5
move 'activation' module contents under 'mode'
fohrloop Apr 16, 2024
1179d06
move select_methods to mode.py
fohrloop Apr 16, 2024
048be26
refactor select_methods tests: split to multiple
fohrloop Apr 16, 2024
7e5e5b4
remove bunch of unused Exceptions
fohrloop Apr 16, 2024
651f463
remove type declaration for Mode.dbus_adapter. There is no such attri…
fohrloop Apr 16, 2024
ee87cd6
update Mode.from_name modename docstring
fohrloop Apr 16, 2024
2fe73b9
reorder attrs in Mode.__init__
fohrloop Apr 16, 2024
c8be220
merge ModeController to Mode
fohrloop Apr 18, 2024
877a204
refactor keep.running and keep.presenting tests
fohrloop Apr 18, 2024
183c7c9
add fake_success parameter to empty_method_registry
fohrloop Apr 18, 2024
2aea841
WIP: refactor test_mode.py
fohrloop Apr 18, 2024
b16d8dc
fixing broken stuff
fohrloop Apr 20, 2024
024c2ff
remove modecontroller test
fohrloop Apr 20, 2024
821b1d8
fix rest of the Mode tests
fohrloop Apr 20, 2024
28a4da4
fix linting, mypy, ..
fohrloop Apr 20, 2024
b6de43c
improve test coverage
fohrloop Apr 20, 2024
9d974f3
create WAKEPY_FAKE_SUCCESS constant
fohrloop Apr 20, 2024
6540a57
fix py37: Literal import from typing_extensions
fohrloop Apr 20, 2024
2788108
refactor: Mode method related functions
fohrloop Apr 20, 2024
c2fbb1a
use actual Heartbeat instances instead of Mocks
fohrloop Apr 20, 2024
953a0b0
split method related tests from test_mode
fohrloop Apr 20, 2024
5d19364
fix test_activate_method_method_without_platform_support
fohrloop Apr 20, 2024
495bcfc
rename _fakesuccess to _fake
fohrloop Apr 20, 2024
d0aabce
rename _fake to _testing
fohrloop Apr 20, 2024
8805c94
update docstring of _testing
fohrloop Apr 20, 2024
567f9a9
fix: import
fohrloop Apr 20, 2024
8dab06f
remove unused mocks
fohrloop Apr 20, 2024
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
4 changes: 2 additions & 2 deletions src/wakepy/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
See the public Python API at: https://wakepy.readthedocs.io/
"""

from .activation import ActivationResult as ActivationResult
from .activation import MethodActivationResult as MethodActivationResult
from .activationresult import ActivationResult as ActivationResult
from .activationresult import MethodActivationResult as MethodActivationResult
from .constants import BusType as BusType
from .constants import ModeName as ModeName
from .constants import PlatformName as PlatformName
Expand Down
Loading
Loading