Skip to content

Add sync:base_path check in QA test.#214

Merged
Qian-HuiChen merged 2 commits into
mainfrom
213-base-path-test
May 4, 2026
Merged

Add sync:base_path check in QA test.#214
Qian-HuiChen merged 2 commits into
mainfrom
213-base-path-test

Conversation

@Qian-HuiChen

Copy link
Copy Markdown
Contributor

This PR updates the QA test to check base_path is not set in sync in config.yaml, instead of checking path.

Closes #213.

@codecov

codecov Bot commented May 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.41%. Comparing base (82e5c81) to head (5e851b3).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #214      +/-   ##
==========================================
+ Coverage   85.38%   85.41%   +0.03%     
==========================================
  Files          22       22              
  Lines        1300     1303       +3     
==========================================
+ Hits         1110     1113       +3     
  Misses        190      190              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Qian-HuiChen Qian-HuiChen force-pushed the 213-base-path-test branch from b401e65 to b9c19cc Compare May 4, 2026 03:53

@atteggiani atteggiani left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good @Qian-HuiChen

Just a small simplification

Comment thread src/model_config_tests/config_tests/qa/test_config.py Outdated
@Qian-HuiChen Qian-HuiChen force-pushed the 213-base-path-test branch from 1c14b56 to 5e851b3 Compare May 4, 2026 04:13
@Qian-HuiChen Qian-HuiChen requested a review from atteggiani May 4, 2026 04:16
@Qian-HuiChen Qian-HuiChen merged commit f7d2249 into main May 4, 2026
8 checks passed
@Qian-HuiChen Qian-HuiChen deleted the 213-base-path-test branch May 4, 2026 04:48
Comment on lines +235 to +239
def test_sync_path_is_none(self, config):
if "sync" in config and "path" in config["sync"]:
assert (
config["sync"]["path"] is None
), "Sync paths should be None if it is set"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We now prefer to use base_path, so I think the test should not allow config["sync"]["path"] at all, because we do not want to suggest to users that this is the preferred option.

Sorry for commenting on a closed PR!

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.

Update QA tests to check base_path instead of path

3 participants