tests.system package¶
Submodules¶
tests.system.base_test module¶
Base Test Case
tests.system.delete_car_negative_test module¶
Flask App REST API testing: DELETE
-
class
tests.system.delete_car_negative_test.
DeleteCarNegativeTestCase
(methodName='runTest')[source]¶ Bases:
tests.system.base_test.BaseTestCase
Simple Flask App Negative Test: DELETE call > cars
tests.system.delete_car_positive_test module¶
Flask App REST API testing: DELETE
-
class
tests.system.delete_car_positive_test.
DeleteCarPositiveTestCase
(methodName='runTest')[source]¶ Bases:
tests.system.base_test.BaseTestCase
Simple Flask App Positive Test: DELETE call > cars
tests.system.get_cars_negative_test module¶
Flask App REST API testing: GET
-
class
tests.system.get_cars_negative_test.
GetCarsNegativeTestCase
(methodName='runTest')[source]¶ Bases:
tests.system.base_test.BaseTestCase
Simple Flask App Negative Test: GET call > cars
-
test_get_car_by_name_non_admin_swift_wrong_credentials
()[source]¶ Get car data by name = ‘swift’ using wrong non admin user credentials. :return:
-
test_get_car_by_name_swift_empty_credentials
()[source]¶ Get car data by name = ‘swift’ using empty user credentials. :return:
-
test_get_list_of_cars_admin_hatchback_wrong_credentials
()[source]¶ Get full list of cars from type = ‘hatchback’ using wrong admin user credentials. :return:
-
test_get_list_of_cars_admin_wrong_credentials
()[source]¶ Get full list of cars using wrong admin user credentials. Wrong password + Correct username. Correct password + Wrong username. :return:
-
test_get_list_of_cars_empty_credentials
()[source]¶ Get full list of cars using empty username/password. Empty password + Empty username. :return:
-
test_get_list_of_cars_non_admin_sedan_wrong_credentials
()[source]¶ Get full list of cars of type = ‘sedan’ using wrong non admin user credentials. :return:
-
tests.system.get_cars_positive_test module¶
Flask App REST API testing: GET
-
class
tests.system.get_cars_positive_test.
GetCarsPositiveTestCase
(methodName='runTest')[source]¶ Bases:
tests.system.base_test.BaseTestCase
Simple Flask App Positive Test: GET call > cars
-
test_get_car_by_name_non_admin_swift
()[source]¶ Get car data by name = ‘swift’ using non admin user credentials. :return:
-
test_get_list_of_cars_admin_hatchback
()[source]¶ Get full list of cars from type = ‘hatchback’ using admin user credentials. :return:
-
tests.system.post_cars_negative_test module¶
Flask App REST API testing: POST
-
class
tests.system.post_cars_negative_test.
PostCarsPositiveTestCase
(methodName='runTest')[source]¶ Bases:
tests.system.base_test.BaseTestCase
Simple Flask App Negative Test: POST call
tests.system.post_cars_positive_test module¶
Flask App REST API testing: POST
-
class
tests.system.post_cars_positive_test.
PostCarsPositiveTestCase
(methodName='runTest')[source]¶ Bases:
tests.system.base_test.BaseTestCase
Simple Flask App Positive Test: POST call
tests.system.post_register_positive_test module¶
Flask App REST API testing: POST
-
class
tests.system.post_register_positive_test.
PostCarRegistrationPositiveTestCase
(methodName='runTest')[source]¶ Bases:
tests.system.base_test.BaseTestCase
Simple Flask App Positive Test: POST call
tests.system.put_cars_negaive_test module¶
Flask App REST API testing: PUT
-
class
tests.system.put_cars_negaive_test.
PutCarNegativeTestCase
(methodName='runTest')[source]¶ Bases:
tests.system.base_test.BaseTestCase
Simple Flask App Negative Test: PUT call > cars
tests.system.put_cars_positive_test module¶
Flask App REST API testing: PUT
-
class
tests.system.put_cars_positive_test.
PutCarPositiveTestCase
(methodName='runTest')[source]¶ Bases:
tests.system.base_test.BaseTestCase
Simple Flask App Positive Test: PUT call > cars