Now that cassette searching can match multiple files for a single test, if two tests share the same base name, the wrong cassette can be matched for a test.
These overlapping names will cause test_msteams_service_emergency_address_create to also match the cassettes for test_msteams_service_emergency_address_create_without_latlon.
This is also causing an issue during the deleteCassettesCurrentFile command. Where the same cassettes can become duplicated in the currentFileCassettesArray and will cause subsequent deletion failures.
This issue is a result of fixing #1 in v1.1.2.
Now that cassette searching can match multiple files for a single test, if two tests share the same base name, the wrong cassette can be matched for a test.
Here is the new cassette matching code:
Here are some example test names:
These overlapping names will cause
test_msteams_service_emergency_address_create
to also match the cassettes fortest_msteams_service_emergency_address_create_without_latlon
.This is also causing an issue during the
deleteCassettesCurrentFile
command. Where the same cassettes can become duplicated in thecurrentFileCassettesArray
and will cause subsequent deletion failures.