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

issues with os.path.exists #135

Open
lukesg08 opened this issue Nov 19, 2024 · 0 comments
Open

issues with os.path.exists #135

lukesg08 opened this issue Nov 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@lukesg08
Copy link
Collaborator

I have an assignment where students are using

os.path.exists

My setup is:

MAIN_REPORT.submission.files.update({"good_data.txt": file_contents})

However, when I try running the code through an assertion (which I don't think is actually relevant to the issue)

assert_equal(expected, call(func_name, "good_data.txt"))

The file path does not exist if the student uses

os.path.exists(filename)

the open function still works and works as if the file is there though. I believe this is because we just override the open function...but I'm not 100% sure

@lukesg08 lukesg08 added the enhancement New feature or request label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant