bretth / nose2django Goto Github PK
View Code? Open in Web Editor NEW[UNMAINTAINED] A plugin for Nose2 that runs your django tests through the nose2 command instead of django-admin.py or manage.py.
License: BSD 2-Clause "Simplified" License
[UNMAINTAINED] A plugin for Nose2 that runs your django tests through the nose2 command instead of django-admin.py or manage.py.
License: BSD 2-Clause "Simplified" License
Traceback (most recent call last):
File "/home/omer/.virtualenvs/restapi/bin/nose2", line 9, in <module>
load_entry_point('nose2==0.5.0', 'console_scripts', 'nose2')()
File "/home/omer/.virtualenvs/restapi/lib/python2.7/site-packages/nose2/main.py", line 284, in discover
return main(*args, **kwargs)
File "/home/omer/.virtualenvs/restapi/lib/python2.7/site-packages/nose2/main.py", line 98, in __init__
super(PluggableTestProgram, self).__init__(**kw)
File "/home/omer/.pyenv/versions/2.7.4/lib/python2.7/unittest/main.py", line 95, in __init__
self.runTests()
File "/home/omer/.virtualenvs/restapi/lib/python2.7/site-packages/nose2/main.py", line 260, in runTests
self.result = runner.run(self.test)
File "/home/omer/.virtualenvs/restapi/lib/python2.7/site-packages/nose2/runner.py", line 45, in run
self.session.hooks.startTestRun(event)
File "/home/omer/.virtualenvs/restapi/lib/python2.7/site-packages/nose2/events.py", line 224, in __call__
result = getattr(plugin, self.method)(event)
File "/home/omer/.virtualenvs/restapi/lib/python2.7/site-packages/nose2django/nose2django.py", line 20, in startTestRun
from django.test.simple import reorder_suite, DjangoTestSuiteRunner
ImportError: cannot import name reorder_suite
Since the Such DSL does not allow using the parameters plugin yet (See nose-devs/nose2#139) I am forced to do the following:
with such.A('foo') as it:
for foo in Foo.objects.all(): # Gets objects from real database
@it.should("do bar for foo (#%d)" % foo.id)
def do_bar(case):
# use foo here
foo.bar() # uses the test database.
it.createTests(globals())
I'd rather have the database setup on runner creation if possible.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.