xintron / django-mongorunner Goto Github PK
View Code? Open in Web Editor NEWDjango testrunner for mongoengine
License: BSD 3-Clause "New" or "Revised" License
Django testrunner for mongoengine
License: BSD 3-Clause "New" or "Revised" License
This probably does not work as intended. Your code;
connect(db_name)
does not reconnect or change database if MongoEngine was already connected from settings.py
because MongoEngine reuses connections if same alias is supplied. And in your case you are supplying default alias, which might already be connected somewhere else.
This code won't work in Django 1.8 since it removes django.test.simple.
From https://docs.djangoproject.com/en/1.8/releases/1.6/#discovery-of-tests-in-any-test-module:
Discovery of tests in any test module¶
Django 1.6 ships with a new test runner that allows more flexibility in the location of tests. The previous runner (django.test.simple.DjangoTestSuiteRunner) found tests only in the models.py and tests.py modules of a Python package in INSTALLED_APPS.
The new runner (django.test.runner.DiscoverRunner) uses the test discovery features built into unittest2 (the version of unittest in the Python 2.7+ standard library, and bundled with Django). With test discovery, tests can be located in any module whose name matches the pattern test*.py.
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.