A calendar importer reads an empty end date as today, although it is supposed to inherit the start date. Give Copilot a concrete case before asking for a production change. Name the parser and nearest test file so it can inspect the existing setup.

Read the date parser and its tests. Add one regression case for a row with start date 2026-08-14 and an empty end date. Expect the parsed start and end dates to both be 2026-08-14. Edit only the test file and report the command you used to run the new test.

Run the named test on the current code. Check that its failure points to the wrong end date. Resolve fixture or import errors before running it again. If the test passes, see whether the assertion exercises the real parser and whether the current date coincides with the fixture. A fixed clock can help if the parser depends on today's date.

Review the change before expanding the request. After fixing the parser, run the same test and the nearby date tests, including an explicit end date case that should continue to pass.

Check that the assertion observes the parser

Inspect the diff before running the test. The input row should contain a genuinely empty end-date field and the expected end date should be the literal fixture date. If the assertion derives the expected value from the same helper that fills the missing field, it can repeat the implementation’s mistake.

Run the case by itself and compare the actual failure with the reported bug. An assertion that gets today instead of August 14 confirms the scenario. A failure that reports a malformed input row needs a fixture correction first. Save the focused test command so you can rerun exactly the same case after the repair.

Sources