NEO-142: gdformat faction standing and quest reward tests
parent
4022a1c220
commit
4b221cdf2a
|
|
@ -97,11 +97,14 @@ func test_parse_faction_standing_json_reads_grid_operators_row() -> void:
|
||||||
var snapshot: Variant = FactionStandingClient.parse_faction_standing_json(json)
|
var snapshot: Variant = FactionStandingClient.parse_faction_standing_json(json)
|
||||||
# Assert
|
# Assert
|
||||||
assert_that(snapshot is Dictionary).is_true()
|
assert_that(snapshot is Dictionary).is_true()
|
||||||
assert_that(
|
(
|
||||||
FactionStandingClient.standing_for(
|
assert_that(
|
||||||
FactionStandingClient.GRID_OPERATORS_ID, snapshot as Dictionary
|
FactionStandingClient.standing_for(
|
||||||
|
FactionStandingClient.GRID_OPERATORS_ID, snapshot as Dictionary
|
||||||
|
)
|
||||||
)
|
)
|
||||||
).is_equal(15)
|
. is_equal(15)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
func test_parse_faction_standing_json_rejects_bad_schema() -> void:
|
func test_parse_faction_standing_json_rejects_bad_schema() -> void:
|
||||||
|
|
@ -163,9 +166,7 @@ func test_http_404_emits_faction_standing_sync_failed() -> void:
|
||||||
# Act
|
# Act
|
||||||
c.call("request_sync_from_server")
|
c.call("request_sync_from_server")
|
||||||
# Assert
|
# Assert
|
||||||
assert_signal(c).is_emitted(
|
assert_signal(c).is_emitted("faction_standing_sync_failed", "HTTP 404 (player unknown)")
|
||||||
"faction_standing_sync_failed", "HTTP 404 (player unknown)"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
func test_request_sync_queues_while_busy_and_flushes_after_completion() -> void:
|
func test_request_sync_queues_while_busy_and_flushes_after_completion() -> void:
|
||||||
|
|
|
||||||
|
|
@ -360,9 +360,7 @@ func test_boot_completed_does_not_emit_economy_refresh_signal() -> void:
|
||||||
# Act
|
# Act
|
||||||
controller.call("_on_progress_received", _completed_gather_with_summary_snapshot())
|
controller.call("_on_progress_received", _completed_gather_with_summary_snapshot())
|
||||||
# Assert
|
# Assert
|
||||||
assert_signal(controller).wait_until(200).is_not_emitted(
|
assert_signal(controller).wait_until(200).is_not_emitted("quest_completion_reward_transition")
|
||||||
"quest_completion_reward_transition"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
func test_completion_transition_queues_economy_refresh_while_clients_busy() -> void:
|
func test_completion_transition_queues_economy_refresh_while_clients_busy() -> void:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue