Commit 0dad9da5 by Sarina Canelake

s/pylint: disable=W0621/pylint: disable=redefined-outer-name/

parent eacd5256
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
from nose.tools import assert_false, assert_equal, assert_regexp_matches # pylint: disable=E0611
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
from nose.tools import assert_true, assert_equal # pylint: disable=E0611
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
import os
from lettuce import world, step
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
# Lettuce formats proposed definitions for unimplemented steps with the
# argument name "step" instead of "_step" and pylint does not like that.
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
# pylint: disable=W0613
from lettuce import world, step
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
from common import *
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
from terrain.steps import reload_the_page
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
from nose.tools import assert_in # pylint: disable=E0611
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
from selenium.webdriver.common.keys import Keys
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
# pylint: disable=W0613
import os
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
from common import *
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
from common import *
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
# pylint: disable=W0613
from nose.tools import assert_false # pylint: disable=no-name-in-module
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
# pylint: disable=W0613
from lettuce import world, step
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
from django.conf import settings
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
from lettuce.django import django_url
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
import urllib
from lettuce import world
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
# Disable the "wildcard import" warning so we can bring in all methods from
# course helpers and ui helpers
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
from lettuce.django import django_url
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from __future__ import absolute_import
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, steps
from nose.tools import assert_in, assert_true # pylint: disable=no-name-in-module
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
from lettuce.django import django_url
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
# pylint: disable=unused-argument
from lettuce import world, step
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
from nose.tools import assert_equals, assert_greater # pylint: disable=E0611
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import step, world
from django.contrib.auth.models import User
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
from common import course_location
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
from lettuce.django import django_url
......
......@@ -3,7 +3,7 @@ Steps for problem.feature lettuce tests
'''
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
from common import i_am_registered_for_the_course, visit_scenario_item
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
# EVERY PROBLEM TYPE MUST HAVE THE FOLLOWING:
# -Section in Dictionary containing:
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
from lettuce.django import django_url
......
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
......
......@@ -3,7 +3,7 @@ Define steps for bulk email acceptance test.
"""
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
from lettuce.django import mail
......
......@@ -3,7 +3,7 @@ Define common steps for instructor dashboard acceptance tests.
"""
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from __future__ import absolute_import
......
......@@ -4,7 +4,7 @@ acceptance tests.
"""
# pylint: disable=C0111
# pylint: disable=W0621
# pylint: disable=redefined-outer-name
from lettuce import world, step
from nose.tools import assert_in, assert_regexp_matches # pylint: disable=E0611
......
......@@ -747,7 +747,7 @@ def get_grading_config(request, course_id):
@ensure_csrf_cookie
@cache_control(no_cache=True, no_store=True, must_revalidate=True)
@require_level('staff')
def get_sale_records(request, course_id, csv=False): # pylint: disable=W0613, W0621
def get_sale_records(request, course_id, csv=False): # pylint: disable=W0613, redefined-outer-name
"""
return the summary of all sales records for a particular course
"""
......@@ -778,7 +778,7 @@ def get_sale_records(request, course_id, csv=False): # pylint: disable=W0613, W
@ensure_csrf_cookie
@cache_control(no_cache=True, no_store=True, must_revalidate=True)
@require_level('staff')
def get_sale_order_records(request, course_id): # pylint: disable=W0613, W0621
def get_sale_order_records(request, course_id): # pylint: disable=W0613, redefined-outer-name
"""
return the summary of all sales records for a particular course
"""
......@@ -878,7 +878,7 @@ def re_validate_invoice(obj_invoice):
@ensure_csrf_cookie
@cache_control(no_cache=True, no_store=True, must_revalidate=True)
@require_level('staff')
def get_purchase_transaction(request, course_id, csv=False): # pylint: disable=W0613, W0621
def get_purchase_transaction(request, course_id, csv=False): # pylint: disable=W0613, redefined-outer-name
"""
return the summary of all purchased transactions for a particular course
"""
......@@ -906,7 +906,7 @@ def get_purchase_transaction(request, course_id, csv=False): # pylint: disable=
@ensure_csrf_cookie
@cache_control(no_cache=True, no_store=True, must_revalidate=True)
@require_level('staff')
def get_students_features(request, course_id, csv=False): # pylint: disable=W0613, W0621
def get_students_features(request, course_id, csv=False): # pylint: disable=W0613, redefined-outer-name
"""
Respond with json which contains a summary of all enrolled students profile information.
......@@ -1107,7 +1107,7 @@ def generate_registration_codes(request, course_id):
internal_reference=internal_reference, customer_reference_number=customer_reference_number
)
registration_codes = []
for _ in range(course_code_number): # pylint: disable=W0621
for _ in range(course_code_number): # pylint: disable=redefined-outer-name
generated_registration_code = save_registration_code(request.user, course_id, sale_invoice, order=None)
registration_codes.append(generated_registration_code)
......
......@@ -151,7 +151,7 @@ class ShoppingCartViewsTests(ModuleStoreTestCase):
resp = self.client.get(billing_url)
self.assertEqual(resp.status_code, 200)
((template, context), _) = render_mock.call_args # pylint: disable=W0621
((template, context), _) = render_mock.call_args # pylint: disable=redefined-outer-name
self.assertEqual(template, 'shoppingcart/billing_details.html')
# check for the default currency in the context
self.assertEqual(context['currency'], 'usd')
......@@ -179,7 +179,7 @@ class ShoppingCartViewsTests(ModuleStoreTestCase):
resp = self.client.get(billing_url)
self.assertEqual(resp.status_code, 200)
((template, context), _) = render_mock.call_args # pylint: disable=W0621
((template, context), _) = render_mock.call_args # pylint: disable=redefined-outer-name
self.assertEqual(template, 'shoppingcart/billing_details.html')
# check for the override currency settings in the context
self.assertEqual(context['currency'], 'PKR')
......@@ -669,7 +669,7 @@ class ShoppingCartViewsTests(ModuleStoreTestCase):
resp = self.client.get(reverse('shoppingcart.views.show_cart', args=[]))
self.assertEqual(resp.status_code, 200)
((purchase_form_arg_cart,), _) = form_mock.call_args # pylint: disable=W0621
((purchase_form_arg_cart,), _) = form_mock.call_args # pylint: disable=redefined-outer-name
purchase_form_arg_cart_items = purchase_form_arg_cart.orderitem_set.all().select_subclasses()
self.assertIn(reg_item, purchase_form_arg_cart_items)
self.assertIn(cert_item, purchase_form_arg_cart_items)
......@@ -693,7 +693,7 @@ class ShoppingCartViewsTests(ModuleStoreTestCase):
resp = self.client.get(reverse('shoppingcart.views.show_cart', args=[]))
self.assertEqual(resp.status_code, 200)
((purchase_form_arg_cart,), _) = form_mock.call_args # pylint: disable=W0621
((purchase_form_arg_cart,), _) = form_mock.call_args # pylint: disable=redefined-outer-name
purchase_form_arg_cart_items = purchase_form_arg_cart.orderitem_set.all().select_subclasses()
self.assertIn(reg_item, purchase_form_arg_cart_items)
......@@ -849,7 +849,7 @@ class ShoppingCartViewsTests(ModuleStoreTestCase):
resp = self.client.get(reverse('shoppingcart.views.show_receipt', args=[self.cart.id]))
self.assertEqual(resp.status_code, 200)
((template, context), _) = render_mock.call_args # pylint: disable=W0621
((template, context), _) = render_mock.call_args # pylint: disable=redefined-outer-name
self.assertEqual(template, 'shoppingcart/receipt.html')
self.assertEqual(context['order'], self.cart)
self.assertEqual(context['order'].total_cost, self.testing_cost)
......@@ -882,7 +882,7 @@ class ShoppingCartViewsTests(ModuleStoreTestCase):
self.assertIn('FirstNameTesting123', resp.content)
self.assertIn('80.00', resp.content)
((template, context), _) = render_mock.call_args # pylint: disable=W0621
((template, context), _) = render_mock.call_args # pylint: disable=redefined-outer-name
self.assertEqual(template, 'shoppingcart/receipt.html')
self.assertEqual(context['order'], self.cart)
self.assertIn(reg_item, context['shoppingcart_items'][0])
......@@ -903,7 +903,7 @@ class ShoppingCartViewsTests(ModuleStoreTestCase):
resp = self.client.get(reverse('shoppingcart.views.show_receipt', args=[self.cart.id]))
self.assertEqual(resp.status_code, 200)
((template, context), _) = render_mock.call_args # pylint: disable=W0621
((template, context), _) = render_mock.call_args # pylint: disable=redefined-outer-name
self.assertEqual(template, 'shoppingcart/receipt.html')
self.assertIn(reg_item, context['shoppingcart_items'][0])
self.assertIn(cert_item, context['shoppingcart_items'][1])
......@@ -944,7 +944,7 @@ class ShoppingCartViewsTests(ModuleStoreTestCase):
# check for the enrollment codes content
self.assertIn('Please send each professional one of these unique registration codes to enroll into the course.', resp.content)
((template, context), _) = render_mock.call_args # pylint: disable=W0621
((template, context), _) = render_mock.call_args # pylint: disable=redefined-outer-name
self.assertEqual(template, 'shoppingcart/receipt.html')
self.assertEqual(context['order'], self.cart)
self.assertIn(reg_item, context['shoppingcart_items'][0])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment