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

Make mocking random models easier #1475

Merged
merged 3 commits into from Aug 5, 2013
Merged

Make mocking random models easier #1475

merged 3 commits into from Aug 5, 2013

Conversation

AD7six
Copy link
Member

@AD7six AD7six commented Aug 3, 2013

Right now it's quite cumbersome to mock "a" model (where a test needs a model, but not a specific model).

Make it easier. Also address the way model-not-found errors are reported.

Otherwise, to override just one key, it's necessary to set all the other
defaults too
Without setting up paths to the test_app - two of the tests will fail

Verify/demonstrate how to mock a model without a model existing
Getting the following warning:

    ReflectionException: Class Mock_Foo_e187b1d1 does not have a
constructor, so you cannot pass any constructor arguments

Is a much less obvious way of saying "the class you're trying to mock
doesn't exist". Be more explicit
@markstory
Copy link
Member

Seems reasonable to me 👍

lorenzo added a commit that referenced this pull request Aug 5, 2013
@lorenzo lorenzo merged commit a54c92f into 2.4 Aug 5, 2013
@jippi jippi deleted the feature/2.4-mock-app-model branch August 5, 2013 09:46
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.

None yet

3 participants