Skip to content

Commit

Permalink
sources-*: fix a few failing tests
Browse files Browse the repository at this point in the history
Fixes a test with source-notion that failed for predictable and obvious reasons.
Also updates a few test snapshots so they'll pass CI.
  • Loading branch information
williamhbaker committed Jan 30, 2025
1 parent 248d588 commit a1a467c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
"is_available": true,
"is_blocked": false,
"last_name": "Bair",
"type": "user",
"username": "alexb"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@
{
"_meta": {
"op": "u",
"row_id": 68,
"row_id": 65,
"uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef"
},
"clauseNames": [],
Expand Down Expand Up @@ -452,7 +452,7 @@
{
"_meta": {
"op": "u",
"row_id": 31,
"row_id": 28,
"uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef"
},
"description": "Default configuration scheme generated by Jira",
Expand All @@ -469,7 +469,7 @@
{
"_meta": {
"op": "u",
"row_id": 15,
"row_id": 12,
"uuid": "DocUUIDPlaceholder-329Bb50aa48EAa9ef"
},
"contextId": "10104",
Expand Down
2 changes: 1 addition & 1 deletion source-notion/tests/test_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_get_authenticator(config, expected_token):
({}, None),
({"start_date": "2021-01-01T00:00:00.000Z"}, None),
({"start_date": "2021-99-99T79:89:99.123Z"}, "The provided start date is not a valid date. Please check the format and try again."),
({"start_date": "2025-01-25T00:00:00.000Z"}, "The start date cannot be greater than the current date."),
({"start_date": "2035-01-25T00:00:00.000Z"}, "The start date cannot be greater than the current date."),
],
)
def test_validate_start_date(config, expected_return):
Expand Down

0 comments on commit a1a467c

Please sign in to comment.