MCPcopy Create free account

hub / github.com/coding-geographies/dockerized-pytest-course / functions

Functions85 in github.com/coding-geographies/dockerized-pytest-course

↓ 6 callersMethodlog_activity
(self, kind, start_time, end_time)
scripts/fitness_log.py:8
↓ 5 callersMethodget_activities
(self)
scripts/fitness_log.py:46
↓ 3 callersMethodadd_population
If the data has not been updated, this function cross-references a dictionary containing countries and their respective populations.
scripts/map_population_update.py:33
↓ 3 callersMethodget_lat_long
(self)
scripts/chp2/video5/mapmaker_solution.py:13
↓ 3 callersFunctionprocess_data
(city_list_location)
tests/chp4/video1/test_conftest_start.py:13
↓ 2 callersFunctionprocess_data
(city_list_location)
tests/chp3/video3/test_parametrize_start.py:13
↓ 2 callersMethodupdated_population_count
This validates whether the data has been updated with the 'Population' and 'Updated' column per row. Returns: boolea
scripts/map_population_update.py:19
↓ 1 callersMethoddelete_activity
(self, kind, start_time, end_time)
scripts/fitness_log.py:40
↓ 1 callersMethodget_data
Returns: list: Data object that is a list of dictionaries
scripts/map_population_update.py:11
↓ 1 callersMethodoverlapping_entry
(self, start_time, end_time)
scripts/fitness_log.py:26
↓ 1 callersFunctionprocess_data
(city_list_location)
tests/chp3/video5/test_param_solution.py:14
↓ 1 callersFunctionprocess_data
(city_list_location)
tests/chp3/video4/test_param_challenge.py:14
↓ 1 callersMethodvalidate_entry
(self, start_time, end_time)
scripts/fitness_log.py:16
Method__init__
(self, activities=None)
scripts/fitness_log.py:4
Method__init__
(self, data, updated)
scripts/map_population_update.py:2
Method__init__
(self, name, latitude, longitude)
scripts/chp2/video5/mapmaker_solution.py:2
Method__init__
(self, name, latitude, longitude)
scripts/chp2/video3/mapmaker_exceptions_start.py:3
Method__init__
(self, name, latitude, longitude)
scripts/chp2/video4/mapmaker_challenge.py:4
Function_specify_type
(file_name_or_type)
tests/conftest.py:16
Function_specify_type
(file_name_or_type)
tests/utility/data_processing.py:20
Function_specify_type
(file_name_or_type)
tests/chp4/video1/test_conftest_start.py:16
Function_specify_type
(file_name_or_type)
tests/chp4/video2/conftest_start.py:22
Function_specify_type
(file_name_or_type)
tests/chp3/video5/test_param_solution.py:17
Function_specify_type
(file_name_or_type)
tests/chp3/video3/test_parametrize_start.py:16
Function_specify_type
(file_name_or_type)
tests/chp3/video4/test_param_challenge.py:17
Functionatitude_stat_per_country
(data, country, stat)
scripts/data_aggregator.py:35
Functioncity_list_location
()
tests/conftest.py:8
Functioncity_list_location
()
tests/utility/cities.py:5
Functioncity_list_location
()
tests/chp2/video6/test_happy_path_start.py:37
Functioncity_list_location
()
tests/chp4/video1/test_conftest_start.py:8
Functioncity_list_location
()
tests/chp4/video2/conftest_start.py:14
Functioncity_list_location
()
tests/chp3/video5/test_param_solution.py:9
Functioncity_list_location
()
tests/chp3/video3/test_parametrize_start.py:8
Functioncity_list_location
()
tests/chp3/video2/test_factory_start.py:6
Functioncity_list_location
()
tests/chp3/video4/test_param_challenge.py:9
Functioncity_list_location_malformed
()
tests/chp2/video7/test_sad_path_start.py:7
Functioncity_list_location_malformed
()
tests/chp3/video2/test_factory_start.py:16
Functioncount_electric_scooter_usage
(data)
scripts/data_aggregator.py:6
Functioncreate_overlapping_times
()
tests/chp5/video1/test_fitness_log.py:28
Functioncreate_overlapping_times
()
tests/chp5/video3/test_filog_solution.py:28
Functioncreate_overlapping_times
()
tests/chp5/video2/test_filog_challenge.py:28
Functioncreate_tracker
()
tests/chp5/video1/test_fitness_log.py:7
Functioncreate_tracker
()
tests/chp5/video3/test_filog_solution.py:7
Functioncreate_tracker
()
tests/chp5/video2/test_filog_challenge.py:7
Functioncsv_reader
(file_location)
scripts/data_processor.py:4
Functioncsv_writer
(row_data, output_location)
scripts/data_aggregator.py:49
Functionget_altitudes_per_country
(data, country)
scripts/data_aggregator.py:31
Methodget_lat_long
(self)
scripts/chp2/video3/mapmaker_exceptions_start.py:9
Methodget_lat_long
(self)
scripts/chp2/video4/mapmaker_challenge.py:13
Functionjson_reader
(file_location)
scripts/json_processor.py:4
Functionprocess_data
(city_list_location)
tests/conftest.py:13
Functionprocess_data
This fixture serves as a factory fixture Instead of directly returning a reader for the file we'd like to access for a test, it will ret
tests/utility/data_processing.py:8
Functionprocess_data
(city_list_location)
tests/chp2/video6/test_happy_path_start.py:42
Functionprocess_data
(city_list_location)
tests/chp4/video2/conftest_start.py:19
Functionprocess_data
(city_list_location)
tests/chp3/video2/test_factory_start.py:11
Functiontest_add_invalid_activity
(create_tracker, create_overlapping_times)
tests/chp5/video1/test_fitness_log.py:35
Functiontest_add_invalid_activity
(create_tracker, create_overlapping_times)
tests/chp5/video3/test_filog_solution.py:35
Functiontest_add_invalid_activity
(create_tracker, create_overlapping_times)
tests/chp5/video2/test_filog_challenge.py:35
Functiontest_add_valid_activities
(create_tracker)
tests/chp5/video1/test_fitness_log.py:18
Functiontest_add_valid_activities
(create_tracker)
tests/chp5/video3/test_filog_solution.py:18
Functiontest_add_valid_activities
(create_tracker)
tests/chp5/video2/test_filog_challenge.py:18
Functiontest_average_atitude_per_country
(process_data)
tests/chp3/video3/test_parametrize_start.py:28
Functiontest_csv_reader_data_contents
Happy Path Test to examine that each row has the appropriate data type per field
tests/chp2/video6/test_happy_path_start.py:24
Functiontest_csv_reader_data_contents
Happy Path Test to examine that each row had the appropriate data type per field
tests/chp4/video1/test_conftest_start.py:45
Functiontest_csv_reader_data_contents
Happy Path Test to examine that each row had the appropriate data type per field
tests/chp3/video2/test_factory_start.py:37
Functiontest_csv_reader_header_fields
Happy Path test to make sure the processed data contains the right header fields
tests/chp2/video6/test_happy_path_start.py:6
Functiontest_csv_reader_header_fields
Happy Path test to make sure the processed data contains the right header fields
tests/chp4/video1/test_conftest_start.py:28
Functiontest_csv_reader_header_fields
Happy Path test to make sure the processed data contains the right header fields
tests/chp3/video2/test_factory_start.py:20
Functiontest_csv_reader_malformed_data_contents
Sad Path Test We will need to wrap the following line in the exceptions context manager:
tests/chp2/video7/test_sad_path_start.py:11
Functiontest_csv_reader_malformed_data_contents
Sad Path Test
tests/chp4/video1/test_conftest_start.py:67
Functiontest_csv_reader_malformed_data_contents
Sad Path Test
tests/chp3/video2/test_factory_start.py:59
Functiontest_csv_writer
(process_data, country, stat, expected)
tests/chp3/video5/test_param_solution.py:34
Functiontest_csv_writer
TO DO: Update the function to be parametrized with 3 scenarios: ('Andorra', 'Mean', 1641.42), ('Andorra', 'Median', 1538.02), ('A
tests/chp3/video4/test_param_challenge.py:29
Functiontest_data_population_no_update
Sad Path test: We don't want the data transformed twice
tests/chp3/video1/test_fixtures_start.py:33
Functiontest_data_population_update
Happy Path test
tests/chp3/video1/test_fixtures_start.py:5
Functiontest_delete_activity
(create_tracker)
tests/chp5/video3/test_filog_solution.py:47
Functiontest_function
()
tests/chp5/video2/test_filog_challenge.py:53
Functiontest_invalid_point_generation
()
tests/chp2/video5/test_chp2_solution.py:10
Functiontest_invalid_point_generation
()
tests/chp2/video3/test_exceptions_start.py:9
Functiontest_invalid_point_generation
()
tests/chp2/video4/test_chp2_challenge.py:10
Functiontest_make_one_point
()
tests/chp2/video5/test_chp2_solution.py:5
Functiontest_make_one_point
()
tests/chp2/video3/test_exceptions_start.py:4
Functiontest_make_one_point
()
tests/chp2/video2/test_mapmaker_start.py:3
Functiontest_make_one_point
()
tests/chp2/video4/test_chp2_challenge.py:5
Functiontest_median_atitude_per_country
(process_data)
tests/chp3/video3/test_parametrize_start.py:35