ignore checkout dir - #38
Conversation
| os.makedirs('templates') | ||
| open('checkout/checkout.html', 'w').close() | ||
| open('templates/index.html', 'w').close() | ||
| self.assertEqual(self.command._get_accept_files([]), [os.path.abspath('templates/index.html')]) |
There was a problem hiding this comment.
WARNING: _get_accept_files runs an unmocked glob.glob over the real filesystem. The assertion _get_accept_files([]) == [abspath('templates/index.html')] only holds because the surrounding TemporaryDirectory is empty besides checkout/ and templates/.
If anyone ever adds another file under e.g. assets/, configs/, layouts/, partials/, locales/, or sass/ inside the tempdir, or runs this test in a non-empty CWD without the os.chdir (e.g. due to a setUp change), the test will fail with a confusing diff. More importantly, the test does not actually demonstrate that checkout/ is the only thing being filtered — it would also pass if GLOB_PATTERN excluded templates/. Recommend patching ntk.command.glob.glob (as done in nearby tests) and asserting checkout/checkout.html is excluded explicitly.
Reply with @kilocode-bot fix it to have Kilo Code address this issue.
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Overview
The incremental diff ( Files Reviewed (3 files)
Previous Review Summary (commit de00a04)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit de00a04)Status: 3 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (5 files)
Reviewed by minimax-m3 · Input: 23.3K · Output: 2.9K · Cached: 240.6K |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Closes #37.
The store rejects uploads to
checkout/, sontk pushandntk watchno longer select it:checkout/**/*.htmlis removed fromGLOB_PATTERN.ntk pullstill downloads the directory.