def test_write_gradings_noninterception(monkeypatch): monkeypatch.setattr( geojson_writer, '_write_geojson', lambda output_dir, filename, feature_collection: _assert_geojson_output(nonintercepting.result, feature_collection)) gradings = mock_gradings.mock_gradings_non_intercepting() geojson_writer.write_gradings(mock_config.mock_output_config(), mock_config.mock_due_date_config(), gradings)
def test_write_gradings_different_uic_ref_and_grades(monkeypatch): monkeypatch.setattr( geojson_writer, '_write_geojson', lambda output_dir, filename, feature_collection: _assert_geojson_output( different_uic_ref_and_grades.result, feature_collection)) gradings = mock_gradings.mock_gradings_different_uic_ref_and_grades() geojson_writer.write_gradings(mock_config.mock_output_config(), mock_config.mock_due_date_config(), gradings)