skrawcz commented on code in PR #1402:
URL: https://github.com/apache/hamilton/pull/1402#discussion_r2404067140
##########
tests/cli/test_logic.py:
##########
@@ -93,3 +93,44 @@ def test_diff_node_versions():
assert diff["reference_only"] == ["orders_per_customer"]
assert diff["current_only"] == ["orders_per_distributor"]
assert diff["edit"] == ["average_order_by_customer",
"customer_summary_table"]
+
+
+def test_load_context_from_toml():
+ """Test loading context from a TOML file with top-level Hamilton
headers."""
+ import os
+ os.environ["HAMILTON_CONFIG"] = "HAMILTON_CONFIG"
+ os.environ["HAMILTON_FINAL_VARS"] = "HAMILTON_FINAL_VARS"
+ os.environ["HAMILTON_INPUTS"] = "HAMILTON_INPUTS"
+ os.environ["HAMILTON_OVERRIDES"] = "HAMILTON_OVERRIDES"
Review Comment:
oh I see, to prove it was changed by the .toml file. I think this should be
patched/mocked for the test, since this will impact the env for the life of the
test process.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]