Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coding-geographies/dockerized-pytest-course
/ functions
Functions
85 in github.com/coding-geographies/dockerized-pytest-course
⨍
Functions
85
◇
Types & classes
6
↓ 6 callers
Method
log_activity
(self, kind, start_time, end_time)
scripts/fitness_log.py:8
↓ 5 callers
Method
get_activities
(self)
scripts/fitness_log.py:46
↓ 3 callers
Method
add_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 callers
Method
get_lat_long
(self)
scripts/chp2/video5/mapmaker_solution.py:13
↓ 3 callers
Function
process_data
(city_list_location)
tests/chp4/video1/test_conftest_start.py:13
↓ 2 callers
Function
process_data
(city_list_location)
tests/chp3/video3/test_parametrize_start.py:13
↓ 2 callers
Method
updated_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 callers
Method
delete_activity
(self, kind, start_time, end_time)
scripts/fitness_log.py:40
↓ 1 callers
Method
get_data
Returns: list: Data object that is a list of dictionaries
scripts/map_population_update.py:11
↓ 1 callers
Method
overlapping_entry
(self, start_time, end_time)
scripts/fitness_log.py:26
↓ 1 callers
Function
process_data
(city_list_location)
tests/chp3/video5/test_param_solution.py:14
↓ 1 callers
Function
process_data
(city_list_location)
tests/chp3/video4/test_param_challenge.py:14
↓ 1 callers
Method
validate_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
Function
atitude_stat_per_country
(data, country, stat)
scripts/data_aggregator.py:35
Function
city_list_location
()
tests/conftest.py:8
Function
city_list_location
()
tests/utility/cities.py:5
Function
city_list_location
()
tests/chp2/video6/test_happy_path_start.py:37
Function
city_list_location
()
tests/chp4/video1/test_conftest_start.py:8
Function
city_list_location
()
tests/chp4/video2/conftest_start.py:14
Function
city_list_location
()
tests/chp3/video5/test_param_solution.py:9
Function
city_list_location
()
tests/chp3/video3/test_parametrize_start.py:8
Function
city_list_location
()
tests/chp3/video2/test_factory_start.py:6
Function
city_list_location
()
tests/chp3/video4/test_param_challenge.py:9
Function
city_list_location_malformed
()
tests/chp2/video7/test_sad_path_start.py:7
Function
city_list_location_malformed
()
tests/chp3/video2/test_factory_start.py:16
Function
count_electric_scooter_usage
(data)
scripts/data_aggregator.py:6
Function
create_overlapping_times
()
tests/chp5/video1/test_fitness_log.py:28
Function
create_overlapping_times
()
tests/chp5/video3/test_filog_solution.py:28
Function
create_overlapping_times
()
tests/chp5/video2/test_filog_challenge.py:28
Function
create_tracker
()
tests/chp5/video1/test_fitness_log.py:7
Function
create_tracker
()
tests/chp5/video3/test_filog_solution.py:7
Function
create_tracker
()
tests/chp5/video2/test_filog_challenge.py:7
Function
csv_reader
(file_location)
scripts/data_processor.py:4
Function
csv_writer
(row_data, output_location)
scripts/data_aggregator.py:49
Function
get_altitudes_per_country
(data, country)
scripts/data_aggregator.py:31
Method
get_lat_long
(self)
scripts/chp2/video3/mapmaker_exceptions_start.py:9
Method
get_lat_long
(self)
scripts/chp2/video4/mapmaker_challenge.py:13
Function
json_reader
(file_location)
scripts/json_processor.py:4
Function
process_data
(city_list_location)
tests/conftest.py:13
Function
process_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
Function
process_data
(city_list_location)
tests/chp2/video6/test_happy_path_start.py:42
Function
process_data
(city_list_location)
tests/chp4/video2/conftest_start.py:19
Function
process_data
(city_list_location)
tests/chp3/video2/test_factory_start.py:11
Function
test_add_invalid_activity
(create_tracker, create_overlapping_times)
tests/chp5/video1/test_fitness_log.py:35
Function
test_add_invalid_activity
(create_tracker, create_overlapping_times)
tests/chp5/video3/test_filog_solution.py:35
Function
test_add_invalid_activity
(create_tracker, create_overlapping_times)
tests/chp5/video2/test_filog_challenge.py:35
Function
test_add_valid_activities
(create_tracker)
tests/chp5/video1/test_fitness_log.py:18
Function
test_add_valid_activities
(create_tracker)
tests/chp5/video3/test_filog_solution.py:18
Function
test_add_valid_activities
(create_tracker)
tests/chp5/video2/test_filog_challenge.py:18
Function
test_average_atitude_per_country
(process_data)
tests/chp3/video3/test_parametrize_start.py:28
Function
test_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
Function
test_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
Function
test_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
Function
test_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
Function
test_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
Function
test_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
Function
test_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
Function
test_csv_reader_malformed_data_contents
Sad Path Test
tests/chp4/video1/test_conftest_start.py:67
Function
test_csv_reader_malformed_data_contents
Sad Path Test
tests/chp3/video2/test_factory_start.py:59
Function
test_csv_writer
(process_data, country, stat, expected)
tests/chp3/video5/test_param_solution.py:34
Function
test_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
Function
test_data_population_no_update
Sad Path test: We don't want the data transformed twice
tests/chp3/video1/test_fixtures_start.py:33
Function
test_data_population_update
Happy Path test
tests/chp3/video1/test_fixtures_start.py:5
Function
test_delete_activity
(create_tracker)
tests/chp5/video3/test_filog_solution.py:47
Function
test_function
()
tests/chp5/video2/test_filog_challenge.py:53
Function
test_invalid_point_generation
()
tests/chp2/video5/test_chp2_solution.py:10
Function
test_invalid_point_generation
()
tests/chp2/video3/test_exceptions_start.py:9
Function
test_invalid_point_generation
()
tests/chp2/video4/test_chp2_challenge.py:10
Function
test_make_one_point
()
tests/chp2/video5/test_chp2_solution.py:5
Function
test_make_one_point
()
tests/chp2/video3/test_exceptions_start.py:4
Function
test_make_one_point
()
tests/chp2/video2/test_mapmaker_start.py:3
Function
test_make_one_point
()
tests/chp2/video4/test_chp2_challenge.py:5
Function
test_median_atitude_per_country
(process_data)
tests/chp3/video3/test_parametrize_start.py:35