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

Group Attributes of Class and Object elements of Google Wallet, to make it more maintainable. #6

Open
wants to merge 38 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
5c23cd4
Group Attributes of Class and Object elements of Google Wallet, to ma…
loechel Apr 22, 2024
0f80398
move attributes around
loechel Apr 22, 2024
1e7671a
move attributes around
loechel Apr 22, 2024
9b76185
rename file notification.py to message.py as it only contains message…
loechel Apr 22, 2024
f4d137b
fix mypy issues with __call_ order on multiple inheritance
loechel Apr 23, 2024
246a3e4
move attributes around
loechel Apr 23, 2024
89bb64c
start implementing transit tickets
loechel Apr 23, 2024
a8feb00
make credential_file depended on a path
loechel Apr 23, 2024
7a327e5
make credential_file depended on a path
loechel Apr 23, 2024
0c3e063
move attributes around
loechel Apr 23, 2024
ed7ac8e
more Classes and Objects, Types and Enums added and cleaned-up
loechel Apr 23, 2024
f18c7a0
fix spelling in tox.ini
loechel Apr 23, 2024
b55ee19
more Classes and Objects, Types and Enums added and cleaned-up
loechel Apr 24, 2024
10f99e3
rename some classes to reflect Mixin character of those classes
loechel Apr 25, 2024
8f73896
More documentation and revert change from model_dump to model_dump_js…
loechel Apr 26, 2024
6802b85
cleanup models
loechel Apr 27, 2024
a9d3047
fix some classes
loechel Apr 28, 2024
1c96007
add debug statement
loechel Apr 28, 2024
63864c7
Update src/edutap/wallet_google/api.py
loechel Apr 29, 2024
dcaacbf
Update src/edutap/wallet_google/session.py
loechel Apr 29, 2024
74d977c
add pydantic-settings and refactor session to use this.
loechel Apr 29, 2024
7e6a7db
refactore settings
loechel Apr 30, 2024
5e36e14
extend Settings
loechel Apr 30, 2024
174135e
test fixtures
loechel Apr 30, 2024
950d60b
test fixtures
loechel Apr 30, 2024
ec7222d
Merge branch 'main' into group_attributes
loechel Apr 30, 2024
100b961
tox env handling
loechel Apr 30, 2024
8b6b094
tox env handling, changed to default env vars
loechel Apr 30, 2024
752dd79
fix enum equals method
loechel Apr 30, 2024
773d230
env var check
loechel Apr 30, 2024
665773f
try to fix tests
May 1, 2024
a2c80dc
try to fix settings for CI
loechel May 1, 2024
1942abf
fix all tox tests
loechel May 1, 2024
32f77dd
add kind attribute for retail classes
loechel May 2, 2024
5bd87d3
fix classes
loechel May 2, 2024
ae617dd
switch requests param to json, as Content-Type-Header is not set
loechel Aug 12, 2024
c600f08
switch requests param to json, as Content-Type-Header is not set, rem…
loechel Aug 12, 2024
6bf4ec9
switch requests param back to data, and explicitly set Content-Type-H…
loechel Aug 12, 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
2 changes: 2 additions & 0 deletions src/edutap/wallet_google/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ def update(
url=session_manager.url(name, f"/{resource_id}"),
data=verified_json.encode("utf-8"),
)
logger.debug(verified_json.encode("utf-8"))
# print(verified_json.encode("utf-8"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commented print should go before merge.

if response.status_code == 404:
raise LookupError(
f"Error 404, {name} {getattr(data, 'id', 'No ID')} not found: - {response.text}"
Expand Down
2 changes: 1 addition & 1 deletion src/edutap/wallet_google/modelcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class GoogleWalletModel(BaseModel):
"""

model_config = ConfigDict(
# extra="forbid",
extra="forbid",
# extra="ignore",
# use_enum_values=True,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

)
Expand Down
Loading