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

update mocking in unit tests to use with_patched_state_env #314

Closed
bitprophet opened this issue Aug 19, 2011 · 4 comments
Closed

update mocking in unit tests to use with_patched_state_env #314

bitprophet opened this issue Aug 19, 2011 · 4 comments

Comments

@bitprophet
Copy link
Member

Description

In ticket 113 we hit a bug in mocking out the state.env for tests. There's an updated decorator in test.utils to use for tests. Updating the tests to use that decorator vs the direct calls to fudge's with_patched_object


Originally submitted by Rick Harding (mitechie) on 2011-03-14 at 03:54pm EDT

Relations


Closed as Done on 2011-04-21 at 09:37pm EDT

@ghost ghost assigned bitprophet Aug 19, 2011
@bitprophet
Copy link
Member Author

Rick Harding (mitechie) posted:


Updated all tests in test_main.py to use the new decorator. This is merged with ticket #113 to get the decorator code which sucks, but heads up.

https://github.com/mitechie/fabric/tree/314-update-test-mocks


on 2011-03-14 at 04:01pm EDT

@bitprophet
Copy link
Member Author

Morgan Goose (goosemo) posted:


In my 1.1 branch now.


on 2011-04-05 at 12:16pm EDT

@bitprophet
Copy link
Member Author

Morgan Goose (goosemo) posted:


Caused a few tests to fail due to the @with_patched_object no longer being defined. Addressed and commited the fix to the 1.1 branch


on 2011-04-05 at 12:24pm EDT

@bitprophet
Copy link
Member Author

Jeff Forcier (bitprophet) posted:


Applied in changeset commit:9399a20600cda6dcdd6ffcf261ee51fb1d067288.


on 2011-04-21 at 09:37pm EDT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant