pdjohntony / vcrpy-cassette-mgr Goto Github PK
View Code? Open in Web Editor NEWEasily open or delete vcrpy cassettes within your tests.
License: MIT License
Easily open or delete vcrpy cassettes within your tests.
License: MIT License
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:
const matchingFiles = files.filter(file => file.startsWith(`${vcrDecorator.vcrTestName}`) && file.endsWith('.yaml'));
Here are some example test names:
test_msteams_service_emergency_address_create
test_msteams_service_emergency_address_create_without_latlon
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.
No cassette is found for the following example:
@pytest.mark.vcr
@pytest.mark.parametrize(
"field, value",
[
("addressDescription", "Fake Address"),
("addressDescription", ""),
("name", "Fake Location"),
("name", ""),
],
)
def test_msteams_service_emergency_location_update_bad_raises(
mstsc, field, value, emer_addr
):
I think its due to the (args) being multiline. Need to investigate further.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.