merged
This commit is contained in:
commit
7cc007be76
|
@ -7,6 +7,8 @@ from fuzzywuzzy import process as fuzzprocess
|
|||
|
||||
def index(request):
|
||||
return render_to_response("index.html", {})
|
||||
def login(request):
|
||||
return render_to_response('login.html',c, context_instance=RequestContext(request))
|
||||
|
||||
def routes(request):
|
||||
context = RequestContext(request, {
|
||||
|
|
|
@ -125,8 +125,35 @@ INSTALLED_APPS = (
|
|||
'mumbai',
|
||||
'mumbaitrains',
|
||||
# 'django.contrib.admindocs',
|
||||
# 'socialregistration',
|
||||
#'socialregistration.contrib.openid',
|
||||
#'socialregistration.contrib.facebook',
|
||||
'emailconfirmation',
|
||||
# 'uni_form',
|
||||
'allauth',
|
||||
'allauth.account',
|
||||
'allauth.socialaccount',
|
||||
'allauth.socialaccount.providers.twitter',
|
||||
'allauth.socialaccount.providers.openid',
|
||||
'allauth.socialaccount.providers.facebook',
|
||||
#'allauth.socialaccount.providers.google',
|
||||
)
|
||||
|
||||
TEMPLATE_CONTEXT_PROCESSORS = (
|
||||
'django.core.context_processors.request',
|
||||
'django.contrib.auth.context_processors.auth',
|
||||
"allauth.context_processors.allauth",
|
||||
"allauth.account.context_processors.account"
|
||||
)
|
||||
AUTHENTICATION_BACKENDS = (
|
||||
"allauth.account.auth_backends.AuthenticationBackend",
|
||||
)
|
||||
EMAIL_HOST ='smtp.gmail.com'
|
||||
EMAIL_HOST_USER = 'subhodipbiswas@gmail.com'
|
||||
EMAIL_HOST_PASSWORD ='doaxhentai'
|
||||
EMAIL_PORT =587
|
||||
EMAIL_USE_TLS =True
|
||||
SERVER_EMAIL = EMAIL_HOST_USER
|
||||
DEFAULT_FROM_EMAIL=EMAIL_HOST_USER
|
||||
try:
|
||||
from local_settings import *
|
||||
except:
|
||||
|
|
201
chaloBEST/static/js/thebus.js
Normal file
201
chaloBEST/static/js/thebus.js
Normal file
|
@ -0,0 +1,201 @@
|
|||
(function($) {
|
||||
var API_BASE = 'http://localhost:8000/1.0/';
|
||||
console.log(API_BASE);
|
||||
var clickedName = 'stops';
|
||||
var searchQuery = 'None';
|
||||
var url1 = API_BASE + clickedName + '/' + '?q=';
|
||||
var url2 = API_BASE + clickedName + '/';
|
||||
var Features = Backbone.Model.extend({
|
||||
|
||||
|
||||
});
|
||||
|
||||
var apiCollection = Backbone.Collection.extend({
|
||||
model: Features,
|
||||
url: searchQuery != 'None' ? url1 + searchQuery : url2,
|
||||
parse: function(response) {
|
||||
return response.features;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
var apiView = Backbone.View.extend({
|
||||
//el: '#content',
|
||||
events: {
|
||||
"click a": "clicked"
|
||||
},
|
||||
|
||||
initialize: function() {
|
||||
//this.render();
|
||||
_.bindAll(this, "render", "clicked");
|
||||
this.collection.bind("all", this.render, this.clicked);
|
||||
//apiView.prototype.initialize.call(this);
|
||||
},
|
||||
render: function() {
|
||||
//$(this.el).html(this.counter = this.collection.length);
|
||||
//console.log(this.collection.length);
|
||||
//console.log(this.el);
|
||||
this.collection.each(function(model) {
|
||||
$('#sideBar').append('<li> <a id=\'' + model.cid + '\' href="#">' + model.get('properties').official_name + "</a></li>");
|
||||
//console.log(model.cid);
|
||||
});
|
||||
|
||||
return this;
|
||||
|
||||
},
|
||||
clicked: function(e) {
|
||||
//e.preventDefaults();
|
||||
//var name1 = this.model.get('properties').official_name;
|
||||
//console.log(e);
|
||||
//alert("you clicked me"+ e.target.innerHTML);
|
||||
events.trigger('stopdetailsEvent', e);
|
||||
events.trigger('stopCoordinatesDisplay',e);
|
||||
//return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//close: function() {
|
||||
// $(this.el).unbind();
|
||||
// $(this.el).remove();
|
||||
//}
|
||||
});
|
||||
var stopView = Backbone.View.extend({
|
||||
el: '#content',
|
||||
initialize: function() {
|
||||
_.bindAll(this, "stopDetails");
|
||||
this.collection.bind("stopdetailsEvent", this.stopDetails);
|
||||
|
||||
},
|
||||
|
||||
stopDetails: function(e) {
|
||||
//console.log(e);
|
||||
//alert("you clicked me"+ e.target.innerHTML);
|
||||
var cid = $(e.target).attr('id');
|
||||
//this.trigger
|
||||
//console.log(cid);
|
||||
this.values = this.collection.getByCid(cid);
|
||||
//this.trigger('new-stage', this.collection.get)
|
||||
this.stopName = e.target.innerHTML;
|
||||
//var test = this.collection.where({official_name: this.stopName});
|
||||
//console.log(this.values.get('properties').road);
|
||||
//console.log(this.el);
|
||||
console.log(this.values.get('geometry').coordinates);
|
||||
$(this.el).find('input#sLug').val(this.values.get('properties').slug);
|
||||
//$('#sLug').attr('id', 'sLug').value(this.values.get('properties').slug);
|
||||
$(this.el).find('input#rOads').val(this.values.get('properties').road);
|
||||
$(this.el).find('textarea#rOutes').html(this.values.get('properties').routes);
|
||||
$(this.el).find('input#dIrection').val(this.values.get('properties').direction);
|
||||
//console.log(e.target);
|
||||
$(this.el).find('input#dIsplayName').val(this.values.get('properties').official_name);
|
||||
$(this.el).find('input#mArathiName').val(this.values.get('properties').name_mr);
|
||||
$(this.el).find('input#aLtName').val(this.values.get('properties').alternative_names);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
events = new apiCollection();
|
||||
$(function() {
|
||||
stopDetailsView = new stopView({
|
||||
el: $("#content"),
|
||||
collection: events
|
||||
});
|
||||
eventView = new apiView({
|
||||
el: $("#sideBar"),
|
||||
//el: $('#slug'),
|
||||
//el:$('#displayName'),
|
||||
collection: events
|
||||
|
||||
});
|
||||
|
||||
|
||||
events.fetch({
|
||||
success: function() {
|
||||
console.log(events.length);
|
||||
//console.log(this.official_name);
|
||||
//alert();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
var Map = Backbone.Model.extend({});
|
||||
|
||||
|
||||
var MapView = Backbone.View.extend({
|
||||
el: '#mapCol',
|
||||
|
||||
initialize: function() {
|
||||
_.bindAll(this, 'initMap');
|
||||
this.bind('stopCoordinatesDisplay',this.initMap);
|
||||
this.initMap();
|
||||
|
||||
},
|
||||
|
||||
initMap: function(e) {
|
||||
// Initialize Basic Openlayers;
|
||||
// console.log(e);
|
||||
// var cid = $(e.target).attr('id');
|
||||
// alert(cid);
|
||||
var center = new OpenLayers.LonLat(8110203.9998955, 2170000.4068373);
|
||||
//var vector = new OpenLayers.Feature.Vector('vector layer');
|
||||
//alert("you are here");
|
||||
map = new OpenLayers.Map(this.el, {
|
||||
projection: new OpenLayers.Projection("EPSG:900913"),
|
||||
displayProjection: new OpenLayers.Projection("EPSG:4326")
|
||||
});
|
||||
//alert(this.el);
|
||||
var layers = [];
|
||||
var lon=72.855202114476
|
||||
var lat=19.127904557572
|
||||
var lonLat = new OpenLayers.LonLat(lon,lat).transform(
|
||||
new OpenLayers.Projection("EPSG:4326"),
|
||||
new OpenLayers.Projection("EPSG:900913")
|
||||
//map.getProjectionObject()
|
||||
);
|
||||
var coordinates = [];
|
||||
layers[0] = new OpenLayers.Layer.OSM();
|
||||
//layers[1] = new OpenLayers.Layer.Bing({
|
||||
// name: "Bing Aerial",
|
||||
// type: "Aerial",
|
||||
// key: "AqGpO7N9ioFw3YHoPV3C8crGfJqW5YST4gGKgIOnijrUbitLlgcAS2A0M9SJrUv9",
|
||||
// }); //some more layer will go here
|
||||
//$(this.el).html(map);
|
||||
|
||||
|
||||
// Style Point
|
||||
var style_red = OpenLayers.Util.extend({}, OpenLayers.Feature.Vector.style['default']);
|
||||
style_red.strokeColor = "red";
|
||||
style_red.fillColor = "red";
|
||||
|
||||
//Show Point
|
||||
coordinates.push(new OpenLayers.Geometry.Point(lonLat.lon, lonLat.lat));
|
||||
console.log(coordinates)
|
||||
var pointsGeometry = new OpenLayers.Geometry.MultiPoint(coordinates);
|
||||
console.log(pointsGeometry)
|
||||
var pointFeature = new OpenLayers.Feature.Vector(pointsGeometry, null, style_red);
|
||||
|
||||
// Layer
|
||||
layers[1] = new OpenLayers.Layer.Vector("Points Layer");
|
||||
layers[1].addFeatures(pointFeature);
|
||||
//alert(pointsLayer);
|
||||
// map.addLayer(pointsLayer);
|
||||
map.addLayers(layers);
|
||||
map.addControl(new OpenLayers.Control.LayerSwitcher());
|
||||
|
||||
map.setCenter(center, 12);
|
||||
|
||||
}
|
||||
});
|
||||
$(function() {
|
||||
var map_view = new MapView();
|
||||
//alert("I am here" + this.el);
|
||||
});
|
||||
|
||||
//var router = Backbone.Router.extend({
|
||||
//routes:{
|
||||
//})
|
||||
})(jQuery);
|
|
@ -40,9 +40,22 @@ body,html {
|
|||
<body>
|
||||
<div id="wrapper">
|
||||
{% block body %}
|
||||
<ul>
|
||||
{% if user.is_authenticated %}
|
||||
<li><a href="{% url account_logout %}">Sign Out</a></li>
|
||||
{% else %}
|
||||
<li><a href="{% url account_login %}">Sign In</a></li>
|
||||
<li><a href="{% url account_signup %}">Sign Up</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
{% block extra_body %}
|
||||
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
@ -7,7 +7,20 @@
|
|||
|
||||
</head>
|
||||
<body bgcolor="#000000" link="white" vlink="white" alink="white">
|
||||
|
||||
<div id="wrapper">
|
||||
{% block body %}
|
||||
<ul>
|
||||
{% if user.is_authenticated %}
|
||||
<li><a href="{% url account_logout %}">Sign Out</a></li>
|
||||
{% else %}
|
||||
<li><a href="{% url account_login %}">Sign In</a></li>
|
||||
<li><a href="{% url account_signup %}">Sign Up</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
<font color="white">
|
||||
<center>
|
||||
<div>
|
||||
|
|
3
chaloBEST/templates/login.html
Normal file
3
chaloBEST/templates/login.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<p>
|
||||
Hello
|
||||
</p>
|
27
chaloBEST/templates/signup.html
Normal file
27
chaloBEST/templates/signup.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% load i18n %}
|
||||
|
||||
{% block head_title %}{% trans "Signup" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{% trans "Sign Up" %}</h1>
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
{% include "account/snippets/already_logged_in.html" %}
|
||||
{% else %}
|
||||
<p>{% blocktrans %}Already have an account? Then please <a href="{{ login_url }}">sign in</a>.{% endblocktrans %}</p>
|
||||
|
||||
<form class="signup" id="signup_form" method="post" action="{% url account_signup %}">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
{% if redirect_field_value %}
|
||||
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
|
||||
{% endif %}
|
||||
|
||||
<button type="submit">{% trans "Sign Up" %} »</button>
|
||||
</form>
|
||||
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
0
chaloBEST/templates/site_base.html
Normal file
0
chaloBEST/templates/site_base.html
Normal file
|
@ -25,7 +25,9 @@ urlpatterns = patterns('',
|
|||
# (r'^stop/(?P<slug>.*?)/georss/$', StopFeed()),
|
||||
(r'^buseditor/$', 'mumbai.views.buseditor'),
|
||||
(r'^editstops/$', 'mumbai.views.editstops'),
|
||||
(r'^accounts/', include('allauth.urls')),
|
||||
(r'^1.0/', include('mumbai.apiurls')),
|
||||
#url(r'^login/', include('socialregistration.urls',namespace='socialregistration')),
|
||||
# Uncomment the admin/doc line below to enable admin documentation:
|
||||
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
||||
#(r'^grappelli/', include('grappelli.urls')),
|
||||
|
|
480
man/man1/nosetests.1
Normal file
480
man/man1/nosetests.1
Normal file
|
@ -0,0 +1,480 @@
|
|||
.TH nosetests 1 "2009-04-23" "0.11" "User Commands"
|
||||
.SH NAME
|
||||
nosetests \- nicer testing for python
|
||||
.\" Man page generated from reStructeredText.
|
||||
.INDENT 0.0
|
||||
.UNINDENT
|
||||
|
||||
.SH SYNOPSIS
|
||||
.INDENT 0.0
|
||||
.INDENT 3.5
|
||||
nosetests [options] [names]
|
||||
|
||||
.UNINDENT
|
||||
.UNINDENT
|
||||
|
||||
.SH DESCRIPTION
|
||||
nose collects tests automatically from python source files,
|
||||
directories and packages found in its working directory (which
|
||||
defaults to the current working directory). Any python source file,
|
||||
directory or package that matches the testMatch regular expression
|
||||
(by default: \fI(?:^|[b_.\-])[Tt]est)\fP will be collected as a test (or
|
||||
source for collection of tests). In addition, all other packages
|
||||
found in the working directory will be examined for python source files
|
||||
or directories that match testMatch. Package discovery descends all
|
||||
the way down the tree, so package.tests and package.sub.tests and
|
||||
package.sub.sub2.tests will all be collected.
|
||||
|
||||
Within a test directory or package, any python source file matching
|
||||
testMatch will be examined for test cases. Within a test module,
|
||||
functions and classes whose names match testMatch and TestCase
|
||||
subclasses with any name will be loaded and executed as tests. Tests
|
||||
may use the assert keyword or raise AssertionErrors to indicate test
|
||||
failure. TestCase subclasses may do the same or use the various
|
||||
TestCase methods available.
|
||||
|
||||
|
||||
.SS Selecting Tests
|
||||
To specify which tests to run, pass test names on the command line:
|
||||
|
||||
|
||||
.nf
|
||||
nosetests only_test_this.py
|
||||
.fi
|
||||
Test names specified may be file or module names, and may optionally
|
||||
indicate the test case to run by separating the module or file name
|
||||
from the test case name with a colon. Filenames may be relative or
|
||||
absolute. Examples:
|
||||
|
||||
|
||||
.nf
|
||||
nosetests test.module
|
||||
nosetests another.test:TestCase.test_method
|
||||
nosetests a.test:TestCase
|
||||
nosetests /path/to/test/file.py:test_function
|
||||
.fi
|
||||
You may also change the working directory where nose looks for tests
|
||||
by using the \-w switch:
|
||||
|
||||
|
||||
.nf
|
||||
nosetests \-w /path/to/tests
|
||||
.fi
|
||||
Note, however, that support for multiple \-w arguments is now deprecated
|
||||
and will be removed in a future release. As of nose 0.10, you can get
|
||||
the same behavior by specifying the target directories \fIwithout\fP
|
||||
the \-w switch:
|
||||
|
||||
|
||||
.nf
|
||||
nosetests /path/to/tests /another/path/to/tests
|
||||
.fi
|
||||
Further customization of test selection and loading is possible
|
||||
through the use of plugins.
|
||||
|
||||
Test result output is identical to that of unittest, except for
|
||||
the additional features (error classes, and plugin\-supplied
|
||||
features such as output capture and assert introspection) detailed
|
||||
in the options below.
|
||||
|
||||
|
||||
.SS Configuration
|
||||
In addition to passing command\-line options, you may also put
|
||||
configuration options in your project\'s \fIsetup.cfg\fP file, or a .noserc
|
||||
or nose.cfg file in your home directory. In any of these standard
|
||||
.ini\-style config files, you put your nosetests configuration in a
|
||||
\fB[nosetests]\fP section. Options are the same as on the command line,
|
||||
with the \-\- prefix removed. For options that are simple switches, you
|
||||
must supply a value:
|
||||
|
||||
|
||||
.nf
|
||||
[nosetests]
|
||||
verbosity=3
|
||||
with\-doctest=1
|
||||
.fi
|
||||
All configuration files that are found will be loaded and their
|
||||
options combined. You can override the standard config file loading
|
||||
with the \fB\-c\fP option.
|
||||
|
||||
|
||||
.SS Using Plugins
|
||||
There are numerous nose plugins available via easy_install and
|
||||
elsewhere. To use a plugin, just install it. The plugin will add
|
||||
command line options to nosetests. To verify that the plugin is installed,
|
||||
run:
|
||||
|
||||
|
||||
.nf
|
||||
nosetests \-\-plugins
|
||||
.fi
|
||||
You can add \-v or \-vv to that command to show more information
|
||||
about each plugin.
|
||||
|
||||
If you are running nose.main() or nose.run() from a script, you
|
||||
can specify a list of plugins to use by passing a list of plugins
|
||||
with the plugins keyword argument.
|
||||
|
||||
|
||||
.SS 0.9 plugins
|
||||
nose 1.0 can use SOME plugins that were written for nose 0.9. The
|
||||
default plugin manager inserts a compatibility wrapper around 0.9
|
||||
plugins that adapts the changed plugin api calls. However, plugins
|
||||
that access nose internals are likely to fail, especially if they
|
||||
attempt to access test case or test suite classes. For example,
|
||||
plugins that try to determine if a test passed to startTest is an
|
||||
individual test or a suite will fail, partly because suites are no
|
||||
longer passed to startTest and partly because it\'s likely that the
|
||||
plugin is trying to find out if the test is an instance of a class
|
||||
that no longer exists.
|
||||
|
||||
|
||||
.SS 0.10 and 0.11 plugins
|
||||
All plugins written for nose 0.10 and 0.11 should work with nose 1.0.
|
||||
|
||||
|
||||
.SS Options
|
||||
|
||||
.TP
|
||||
\fB\-V\fR\fR\fR, \fB\-\-version\fR\fR
|
||||
Output nose version and exit
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-p\fR\fR\fR, \fB\-\-plugins\fR\fR
|
||||
Output list of available plugins and exit. Combine with higher verbosity for greater detail
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-v\fR\fR=DEFAULT\fR, \fB\-\-verbose\fR\fR=DEFAULT
|
||||
Be more verbose. [NOSE_VERBOSE]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-verbosity\fR\fR=VERBOSITY
|
||||
Set verbosity; \-\-verbosity=2 is the same as \-v
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-q\fR\fR=DEFAULT\fR, \fB\-\-quiet\fR\fR=DEFAULT
|
||||
Be less verbose
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-c\fR\fR=FILES\fR, \fB\-\-config\fR\fR=FILES
|
||||
Load configuration from config file(s). May be specified multiple times; in that case, all config files will be loaded and combined
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-w\fR\fR=WHERE\fR, \fB\-\-where\fR\fR=WHERE
|
||||
Look for tests in this directory. May be specified multiple times. The first directory passed will be used as the working directory, in place of the current working directory, which is the default. Others will be added to the list of tests to execute. [NOSE_WHERE]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-py3where\fR\fR=PY3WHERE
|
||||
Look for tests in this directory under Python 3.x. Functions the same as \'where\', but only applies if running under Python 3.x or above. Note that, if present under 3.x, this option completely replaces any directories specified with \'where\', so the \'where\' option becomes ineffective. [NOSE_PY3WHERE]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-m\fR\fR=REGEX\fR, \fB\-\-match\fR\fR=REGEX\fR, \fB\-\-testmatch\fR\fR=REGEX
|
||||
Files, directories, function names, and class names that match this regular expression are considered tests. Default: (?:^|[b_./\-])[Tt]est [NOSE_TESTMATCH]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-tests\fR\fR=NAMES
|
||||
Run these tests (comma\-separated list). This argument is useful mainly from configuration files; on the command line, just pass the tests to run as additional arguments with no switch.
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-l\fR\fR=DEFAULT\fR, \fB\-\-debug\fR\fR=DEFAULT
|
||||
Activate debug logging for one or more systems. Available debug loggers: nose, nose.importer, nose.inspector, nose.plugins, nose.result and nose.selector. Separate multiple names with a comma.
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-debug\-log\fR\fR=FILE
|
||||
Log debug messages to this file (default: sys.stderr)
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-logging\-config\fR\fR=FILE\fR, \fB\-\-log\-config\fR\fR=FILE
|
||||
Load logging config from this file \-\- bypasses all other logging config settings.
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-I\fR\fR=REGEX\fR, \fB\-\-ignore\-files\fR\fR=REGEX
|
||||
Completely ignore any file that matches this regular expression. Takes precedence over any other settings or plugins. Specifying this option will replace the default setting. Specify this option multiple times to add more regular expressions [NOSE_IGNORE_FILES]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-e\fR\fR=REGEX\fR, \fB\-\-exclude\fR\fR=REGEX
|
||||
Don\'t run tests that match regular expression [NOSE_EXCLUDE]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-i\fR\fR=REGEX\fR, \fB\-\-include\fR\fR=REGEX
|
||||
This regular expression will be applied to files, directories, function names, and class names for a chance to include additional tests that do not match TESTMATCH. Specify this option multiple times to add more regular expressions [NOSE_INCLUDE]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-x\fR\fR\fR, \fB\-\-stop\fR\fR
|
||||
Stop running tests after the first error or failure
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-P\fR\fR\fR, \fB\-\-no\-path\-adjustment\fR\fR
|
||||
Don\'t make any changes to sys.path when loading tests [NOSE_NOPATH]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-exe\fR\fR
|
||||
Look for tests in python modules that are executable. Normal behavior is to exclude executable modules, since they may not be import\-safe [NOSE_INCLUDE_EXE]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-noexe\fR\fR
|
||||
DO NOT look for tests in python modules that are executable. (The default on the windows platform is to do so.)
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-traverse\-namespace\fR\fR
|
||||
Traverse through all path entries of a namespace package
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-first\-package\-wins\fR\fR\fR, \fB\-\-first\-pkg\-wins\fR\fR\fR, \fB\-\-1st\-pkg\-wins\fR\fR
|
||||
nose\'s importer will normally evict a package from sys.modules if it sees a package with the same name in a different location. Set this option to disable that behavior.
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-a\fR\fR=ATTR\fR, \fB\-\-attr\fR\fR=ATTR
|
||||
Run only tests that have attributes specified by ATTR [NOSE_ATTR]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-A\fR\fR=EXPR\fR, \fB\-\-eval\-attr\fR\fR=EXPR
|
||||
Run only tests for whose attributes the Python expression EXPR evaluates to True [NOSE_EVAL_ATTR]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-s\fR\fR\fR, \fB\-\-nocapture\fR\fR
|
||||
Don\'t capture stdout (any stdout output will be printed immediately) [NOSE_NOCAPTURE]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-nologcapture\fR\fR
|
||||
Disable logging capture plugin. Logging configurtion will be left intact. [NOSE_NOLOGCAPTURE]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-logging\-format\fR\fR=FORMAT
|
||||
Specify custom format to print statements. Uses the same format as used by standard logging handlers. [NOSE_LOGFORMAT]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-logging\-datefmt\fR\fR=FORMAT
|
||||
Specify custom date/time format to print statements. Uses the same format as used by standard logging handlers. [NOSE_LOGDATEFMT]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-logging\-filter\fR\fR=FILTER
|
||||
Specify which statements to filter in/out. By default, everything is captured. If the output is too verbose,
|
||||
use this option to filter out needless output.
|
||||
Example: filter=foo will capture statements issued ONLY to
|
||||
foo or foo.what.ever.sub but not foobar or other logger.
|
||||
Specify multiple loggers with comma: filter=foo,bar,baz.
|
||||
If any logger name is prefixed with a minus, eg filter=\-foo,
|
||||
it will be excluded rather than included. Default: exclude logging messages from nose itself (\-nose). [NOSE_LOGFILTER]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-logging\-clear\-handlers\fR\fR
|
||||
Clear all other logging handlers
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-with\-coverage\fR\fR
|
||||
Enable plugin Coverage:
|
||||
Activate a coverage report using Ned Batchelder\'s coverage module.
|
||||
[NOSE_WITH_COVERAGE]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-cover\-package\fR\fR=PACKAGE
|
||||
Restrict coverage output to selected packages [NOSE_COVER_PACKAGE]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-cover\-erase\fR\fR
|
||||
Erase previously collected coverage statistics before run
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-cover\-tests\fR\fR
|
||||
Include test modules in coverage report [NOSE_COVER_TESTS]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-cover\-inclusive\fR\fR
|
||||
Include all python files under working directory in coverage report. Useful for discovering holes in test coverage if not all files are imported by the test suite. [NOSE_COVER_INCLUSIVE]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-cover\-html\fR\fR
|
||||
Produce HTML coverage information
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-cover\-html\-dir\fR\fR=DIR
|
||||
Produce HTML coverage information in dir
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-pdb\fR\fR
|
||||
Drop into debugger on errors
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-pdb\-failures\fR\fR
|
||||
Drop into debugger on failures
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-no\-deprecated\fR\fR
|
||||
Disable special handling of DeprecatedTest exceptions.
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-with\-doctest\fR\fR
|
||||
Enable plugin Doctest:
|
||||
Activate doctest plugin to find and run doctests in non\-test modules.
|
||||
[NOSE_WITH_DOCTEST]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-doctest\-tests\fR\fR
|
||||
Also look for doctests in test modules. Note that classes, methods and functions should have either doctests or non\-doctest tests, not both. [NOSE_DOCTEST_TESTS]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-doctest\-extension\fR\fR=EXT
|
||||
Also look for doctests in files with this extension [NOSE_DOCTEST_EXTENSION]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-doctest\-result\-variable\fR\fR=VAR
|
||||
Change the variable name set to the result of the last interpreter command from the default \'_\'. Can be used to avoid conflicts with the _() function used for text translation. [NOSE_DOCTEST_RESULT_VAR]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-doctest\-fixtures\fR\fR=SUFFIX
|
||||
Find fixtures for a doctest file in module with this name appended to the base name of the doctest file
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-with\-isolation\fR\fR
|
||||
Enable plugin IsolationPlugin:
|
||||
Activate the isolation plugin to isolate changes to external
|
||||
modules to a single test module or package. The isolation plugin
|
||||
resets the contents of sys.modules after each test module or
|
||||
package runs to its state before the test. PLEASE NOTE that this
|
||||
plugin should not be used with the coverage plugin, or in any other case
|
||||
where module reloading may produce undesirable side\-effects.
|
||||
[NOSE_WITH_ISOLATION]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-d\fR\fR\fR, \fB\-\-detailed\-errors\fR\fR\fR, \fB\-\-failure\-detail\fR\fR
|
||||
Add detail to error output by attempting to evaluate failed asserts [NOSE_DETAILED_ERRORS]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-with\-profile\fR\fR
|
||||
Enable plugin Profile:
|
||||
Use this plugin to run tests using the hotshot profiler.
|
||||
[NOSE_WITH_PROFILE]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-profile\-sort\fR\fR=SORT
|
||||
Set sort order for profiler output
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-profile\-stats\-file\fR\fR=FILE
|
||||
Profiler stats file; default is a new temp file on each run
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-profile\-restrict\fR\fR=RESTRICT
|
||||
Restrict profiler output. See help for pstats.Stats for details
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-no\-skip\fR\fR
|
||||
Disable special handling of SkipTest exceptions.
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-with\-id\fR\fR
|
||||
Enable plugin TestId:
|
||||
Activate to add a test id (like #1) to each test name output. Activate
|
||||
with \-\-failed to rerun failing tests only.
|
||||
[NOSE_WITH_ID]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-id\-file\fR\fR=FILE
|
||||
Store test ids found in test runs in this file. Default is the file .noseids in the working directory.
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-failed\fR\fR
|
||||
Run the tests that failed in the last test run.
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-processes\fR\fR=NUM
|
||||
Spread test run among this many processes. Set a number equal to the number of processors or cores in your machine for best results. [NOSE_PROCESSES]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-process\-timeout\fR\fR=SECONDS
|
||||
Set timeout for return of results from each test runner process. [NOSE_PROCESS_TIMEOUT]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-process\-restartworker\fR\fR
|
||||
If set, will restart each worker process once their tests are done, this helps control memory leaks from killing the system. [NOSE_PROCESS_RESTARTWORKER]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-with\-xunit\fR\fR
|
||||
Enable plugin Xunit: This plugin provides test results in the standard XUnit XML format. [NOSE_WITH_XUNIT]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-xunit\-file\fR\fR=FILE
|
||||
Path to xml file to store the xunit report in. Default is nosetests.xml in the working directory [NOSE_XUNIT_FILE]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-all\-modules\fR\fR
|
||||
Enable plugin AllModules: Collect tests from all python modules.
|
||||
[NOSE_ALL_MODULES]
|
||||
|
||||
|
||||
.TP
|
||||
\fB\-\-collect\-only\fR\fR
|
||||
Enable collect\-only:
|
||||
Collect and output test names only, don\'t run any tests.
|
||||
[COLLECT_ONLY]
|
||||
|
||||
|
||||
.SH AUTHOR
|
||||
jpellerin+nose@gmail.com
|
||||
|
||||
.SH COPYRIGHT
|
||||
LGPL
|
||||
|
||||
.\" Generated by docutils manpage writer on 2011-07-30 18:55.
|
||||
.\"
|
|
@ -1,9 +1,28 @@
|
|||
Django==1.3
|
||||
#-e svn+http://code.djangoproject.com/svn/django/trunk/#egg=django
|
||||
-e bzr+http://code.0x2620.org/python-ox/#egg=python-ox
|
||||
-e git+git://github.com/seatgeek/fuzzywuzzy.git#egg=fuzzywuzzy
|
||||
-e git+git://github.com/bit/django-extensions.git#egg=django_extensions
|
||||
#django_extensions
|
||||
django-grappelli
|
||||
-e git+git://github.com/schuyler/rapidsms.git#egg=rapidsms
|
||||
-e git+git://github.com/schuyler/arrest.git#egg=arrest
|
||||
RapidSMS==0.9.6a
|
||||
-e git://github.com/schuyler/arrest.git@0017837a45bcb31786f953fba976d454ae684ecc#egg=arrest-dev
|
||||
chardet==1.0.1
|
||||
django-allauth==0.5.0
|
||||
django-avatar==1.0.5
|
||||
django-debug-toolbar==0.9.4
|
||||
django-email-confirmation==0.2
|
||||
-e git://github.com/bit/django-extensions.git@c495f97a1d37bf5d40508b8e0eb128ae9fa0a6b0#egg=django_extensions-dev
|
||||
django-guardian==1.0.4
|
||||
django-nose==1.1
|
||||
django-profiles==0.2
|
||||
django-sms==0.0.4
|
||||
djappsettings==0.1.0
|
||||
djtables==0.1.2
|
||||
#facebook-python-sdk==0.1
|
||||
-e git://github.com/jhaddad/facebook-python-sdk#egg=facebook-python-sdk
|
||||
facebook-sdk==0.3.1
|
||||
feedparser==5.1.2
|
||||
-e git://github.com/seatgeek/fuzzywuzzy.git@c73e3d32e3bb4d31dc38cc64e3a3362855d4d249#egg=fuzzywuzzy-dev
|
||||
httplib2==0.7.4
|
||||
mock==0.8.0
|
||||
nose==1.1.2
|
||||
oauth2==1.5.211
|
||||
-e bzr+http://code.0x2620.org/python-ox/@354#egg=ox-2.0.354-py2.7-dev_r354
|
||||
#psycopg2==2.4.5
|
||||
python-openid==2.2.5
|
||||
wsgiref==0.1.2
|
||||
|
|
Loading…
Reference in New Issue
Block a user