Closed bloomsa closed 1 year ago
I see one of the test actions, build (windows latest 3.9), failed but I'm not sure it's related since the code change doesn't seem to touch the affected test case
I see one of the test actions, build (windows latest 3.9), failed but I'm not sure it's related since the code change doesn't seem to touch the affected test case
That is a known flaky test.
Changes look good! Can you please add a test in https://github.com/jupyter-server/jupyter_server/blob/main/tests/services/contents/test_manager.py that tries to get a file that doesn't exist and ensures that a 404 is raised?
Changes look good! Can you please add a test in https://github.com/jupyter-server/jupyter_server/blob/main/tests/services/contents/test_manager.py that tries to get a file that doesn't exist and ensures that a 404 is raised?
done in my latest commit. couple of questions though
"w"
argument is on cm.get
here? I'm kind of confused about it as "w" doesn't really make sense for the content
argument typed as a bool (ref) is it maybe legacy from a previous iteration of the get
method? with pytest.raises(HTTPError) as excinfo:
to be satisfied. I don't really understand how the assertions above it pass okay - my understanding is that the except
should catch the exception and not trickle it up to the with
. Do you want me to reformat those other assertions too? (or am I doing something totally wrong here 😅 )Hey @bloomsa, I agree the w
is a logic error currently. I also think the previous blocks probably suffered from the move from nose
to pytest
are incorrect as well. The previous one isn't actually testing anything. 😅
I'm working on fixing the test cases for windows (actually led me to a bug in the tests that I'll fix 👍 ) would you like me to fix these as part of this PR? I can do it no problem @blink1073
I agree the w is a logic error currently. I also think the previous blocks probably suffered from the move from nose to pytest are incorrect as well.
Yes please!
@Wh1isper, I'll wait for you to take another look.
@blink1073 LGTM, thx
this addresses #1328. This works based on my testing but I'm more than happy to make structural changes to clean the code up. I'm admittedly not very well versed in tornado. Thanks in advance for feedback :)