-
Notifications
You must be signed in to change notification settings - Fork 384
Fix name of mock test method #240
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
base: main
Are you sure you want to change the base?
Conversation
assert_has_call is not an assertion method on Mock() instances, so none of these tests had a chance of failing.
|
Ugh, the problem with "any attribute is cool on a mock". Thanks for catching this. I think the actual correct replacement is |
|
I'm not sure that In this case, by looking at The Windows tests are still failing and I'm not sure the best way to generalize them (particularly for the user and system tests). |
|
But yes, having the assert contain just args rather than |
|
I finally got a Windows environment set up where I can test this locally. The two tests that seem to be failing are:
You've already mentioned that the "system prefix" doesn't make much sense on Windows. Also here. Would it make sense for the "system-level" config file to just be The "project_location" test seems to just be a hard-coded path separator ("/") that doesn't translate on Windows. Easy fix. |
|
The Windows tests on AppVeyor seem to be passing (crosses fingers), but Travis seems to be getting errors building virtualenvs. I don't think that's related to this code. Perhaps manually restart the Travis build? |
|
Hm nope that's my fuckup, I started experimenting with code coverage and probably forgot to flip some bits somewhere. EDIT: found it, it's Travis-specific which is why I missed it. Pushed fix, will hit rerun on your build in a bit. Thanks! |
|
Er right, we can't actually rerun THAT build as it's SHA pinned. If you merge master I think it'll automatically kick off a new build. |
|
Also, +1 on default being just |
|
Completely off the top of my head, so may be wrong: There's I'll merge master to kick off a new travis build. |
|
It looks like the Line 5 in c9f1112
Lines 91 to 94 in c9f1112
|
|
You should be able to "restart" a Travis Build if you're signed in. It's useful if the failure depends on something outside of the code (such as the wrong version of |
|
Ugh, yes, that task is local, sorry. The danger of having a bunch of interconnected |
|
Gross, travis (distinct from my testing on workstations) is really mad about something in the newer pty related code (so, not your fault). I'll have to figure that out. EDIT: #253. that's my top priority for this project right now, so it'll get done sometime soon, hopefully this weekend. Traveling tonight. |
assert_has_call is not an assertion method on Mock() instances, so none
of these tests had a chance of failing.
I discovered this while attempting to add a test for #210. An alternative would be to switch to using
assert_any_call.