Skip to content

Conversation

@jpn--
Copy link
Collaborator

@jpn-- jpn-- commented Nov 2, 2025

I rewrote test_run_trip_scheduling_choice to test the model component without needing all the config file baggage.


This pull request refactors the trip scheduling choice test in the ActivitySim ABM test suite to simplify configuration management and improve test clarity. The most significant changes are the removal of the external YAML settings file, inlining of model settings within the test, and enhancement of test assertions for output validation.

Configuration management improvements:

  • Removed the trip_scheduling_choice.yaml configuration file and inlined its relevant settings directly into the test code, eliminating external file dependency for model settings.
  • Removed the settings fixture and updated the skims fixture to no longer depend on it, further simplifying test setup. [1] [2]

Test logic and validation enhancements:

  • Refactored the main test (test_run_trip_scheduling_choice) to create a temporary workflow state and set model settings programmatically, clarifying the distinction between test and production model configuration.
  • Improved output validation by adding checks that output columns are not present in the input tours, that output columns are present in the results, and that output durations sum correctly and match expectations for tours with no stops.

@dhensle dhensle merged commit 8f52e7c into RSGInc:trip_scheduling_rng_fix Nov 12, 2025
19 checks passed
@jpn-- jpn-- deleted the trip_scheduling_rng_fix branch November 13, 2025 14:21
dhensle added a commit that referenced this pull request Dec 5, 2025
…ss (ActivitySim#1005)

* single process run with

* ensured schedule order when generating alternatives

* trip scheduling choice test fix

* scheduling choice fix with linting

* trip departture choice test fix

* deleted extra outputs folder

* restoring deleted arc test files

* deleting extra added files

* more file cleanup

* removing arc from CI test list

* improved testing (#10)

* improved testing

* blacken

* stable sorting

* blacken

* addressing review comments

---------

Co-authored-by: juangacosta <[email protected]>
Co-authored-by: Jeffrey Newman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants