-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding new field to know which is the name of the pointer (#27)
* Adding a new field to know which field should be used as pointer * Fixing list topic in new pubsub lib version
- Loading branch information
1 parent
0a249b0
commit 3f5aa2e
Showing
5 changed files
with
75 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,12 @@ | |
"service_id": "raw", | ||
"table_name": "users", | ||
"action": "upsert", | ||
"data": [{"id": 1, "name": "maria", "email": "[email protected]"}], | ||
"data": [ | ||
{"id": 1, "name": "maria", "email": "[email protected]", "updated_at": "2020-08-05T16:48:39.343"}, | ||
{"id": 2, "name": "alana", "email": "[email protected]", "updated_at": "2021-01-05T10:08:39.000"}, | ||
{"id": 3, "name": "joana", "email": "[email protected]", "updated_at": "2020-12-05T10:08:39.000"}, | ||
], | ||
"sequence_pointer_field": "updated_at", | ||
} | ||
|
||
|
||
|
@@ -73,3 +78,8 @@ def test_with_data_over_1000(): | |
assert json.loads(info.value.json()) == [ | ||
{"loc": ["data"], "msg": "Field data exceed 1000 records.", "type": "value_error",} | ||
] | ||
|
||
|
||
def test_get_max_datetime(): | ||
batch: BatchModel = BatchModel(**BATCH) | ||
assert batch.last_updated_at == 1609852119 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters