Skip to content

Commit

Permalink
Fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryamanz29 committed Jun 19, 2024
1 parent 58e2c4b commit b22e465
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/test_search_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def test_dsl():
)
assert (
dsl.json(by_alias=True, exclude_none=True)
== '{"from": 0, "size": 100, "aggregations": {}, "track_total_hits": true, '
== '{"from": 0, "size": 300, "aggregations": {}, "track_total_hits": true, '
'"post_filter": {"term": {"databaseName.keyword": '
'{"value": "ATLAN_SAMPLE_DATA"}}}, "query": {"term": '
'{"__typeName.keyword": {"value": "Schema"}}}, "sort": []}'
Expand All @@ -283,7 +283,7 @@ def test_index_search_request():
assert (
request.json(by_alias=True, exclude_none=True)
== '{"attributes": ["schemaName", "databaseName"],'
' "dsl": {"from": 0, "size": 100, "aggregations": {}, "track_total_hits": true, '
' "dsl": {"from": 0, "size": 300, "aggregations": {}, "track_total_hits": true, '
'"post_filter": {"term": {"databaseName.keyword": '
'{"value": "ATLAN_SAMPLE_DATA"}}}, "query": {"term": {"__typeName.keyword": {"value": "Schema"}}}, '
'"sort": [{"__guid": {"order": "asc"}}]}, "relationAttributes": [], '
Expand All @@ -300,7 +300,7 @@ def test_audit_search_request():
assert (
request.json(by_alias=True, exclude_none=True)
== '{"attributes": ["schemaName", "databaseName"],'
' "dsl": {"from": 0, "size": 100, "aggregations": {}, "track_total_hits": true, '
' "dsl": {"from": 0, "size": 300, "aggregations": {}, "track_total_hits": true, '
'"post_filter": {"term": {"databaseName.keyword": '
'{"value": "ATLAN_SAMPLE_DATA"}}}, "query": {"term": {"__typeName.keyword": {"value": "Schema"}}}, '
'"sort": [{"entityId": {"order": "asc"}}]}}'
Expand All @@ -316,7 +316,7 @@ def test_search_log_request():
assert (
request.json(by_alias=True, exclude_none=True)
== '{"attributes": ["schemaName", "databaseName"],'
' "dsl": {"from": 0, "size": 100, "aggregations": {}, "track_total_hits": true, '
' "dsl": {"from": 0, "size": 300, "aggregations": {}, "track_total_hits": true, '
'"post_filter": {"term": {"databaseName.keyword": '
'{"value": "ATLAN_SAMPLE_DATA"}}}, "query": {"term": {"__typeName.keyword": {"value": "Schema"}}}, '
'"sort": [{"entityGuidsAll": {"order": "asc"}}]}}'
Expand Down

0 comments on commit b22e465

Please sign in to comment.