Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove cache file when tests pytest-embedded itself (RDT-602) #241

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

horw
Copy link
Member

@horw horw commented Nov 27, 2023

Remove the cache to make testing pytest-embedded more stable.

conftest.py Outdated
@@ -18,6 +18,14 @@ def copy_fixtures(testdir):
yield


@pytest.fixture(autouse=True, scope='session')
Copy link
Member

Choose a reason for hiding this comment

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

scope should be function?

clear the cache between the test cases.

Copy link
Member Author

@horw horw Nov 28, 2023

Choose a reason for hiding this comment

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

I changed it to the function scope, but I'm confused by some logs. I think there might be conflicts because the cache is set to session.

Copy link
Member

@hfudev hfudev left a comment

Choose a reason for hiding this comment

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

LGTM!

conftest.py Outdated Show resolved Hide resolved
conftest.py Outdated Show resolved Hide resolved
@horw horw force-pushed the feat/cache_file_remove_conftest branch from ab309dc to a8b5d5a Compare November 30, 2023 04:01
@horw horw requested a review from hfudev November 30, 2023 06:24
@horw horw force-pushed the feat/cache_file_remove_conftest branch from a1db685 to a8b5d5a Compare November 30, 2023 09:23
@hfudev
Copy link
Member

hfudev commented Dec 1, 2023

Thank you for your PR @horw I've removed the closes xxx since this PR didn't actually solve the problem.

@hfudev hfudev merged commit f41b012 into espressif:main Dec 1, 2023
9 of 10 checks passed
@github-actions github-actions bot changed the title feat: remove cache file when tests pytest-embedded itself feat: remove cache file when tests pytest-embedded itself (RDT-602) Dec 1, 2023
@VojtechBartoska
Copy link

Closes #238

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.

3 participants