Skip to content

Commit

Permalink
[test] Remove useless tests (covered by 'test_gtfs')
Browse files Browse the repository at this point in the history
  • Loading branch information
woshilapin committed Jul 27, 2020
1 parent bc64f97 commit f88a103
Show file tree
Hide file tree
Showing 41 changed files with 0 additions and 263 deletions.
2 changes: 0 additions & 2 deletions tests/fixtures/gtfs2ntfs/levels_and_pathways/input/agency.txt

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions tests/fixtures/gtfs2ntfs/levels_and_pathways/input/levels.txt

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions tests/fixtures/gtfs2ntfs/levels_and_pathways/input/routes.txt

This file was deleted.

12 changes: 0 additions & 12 deletions tests/fixtures/gtfs2ntfs/levels_and_pathways/input/stop_times.txt

This file was deleted.

21 changes: 0 additions & 21 deletions tests/fixtures/gtfs2ntfs/levels_and_pathways/input/stops.txt

This file was deleted.

6 changes: 0 additions & 6 deletions tests/fixtures/gtfs2ntfs/levels_and_pathways/input/trips.txt

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions tests/fixtures/gtfs2ntfs/levels_and_pathways/output/lines.txt

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions tests/fixtures/gtfs2ntfs/levels_and_pathways/output/stop_times.txt

This file was deleted.

16 changes: 0 additions & 16 deletions tests/fixtures/gtfs2ntfs/levels_and_pathways/output/stops.txt

This file was deleted.

6 changes: 0 additions & 6 deletions tests/fixtures/gtfs2ntfs/levels_and_pathways/output/trips.txt

This file was deleted.

2 changes: 0 additions & 2 deletions tests/fixtures/gtfs2ntfs/minimal_with_config/input/agency.txt

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions tests/fixtures/gtfs2ntfs/minimal_with_config/input/routes.txt

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions tests/fixtures/gtfs2ntfs/minimal_with_config/input/stops.txt

This file was deleted.

2 changes: 0 additions & 2 deletions tests/fixtures/gtfs2ntfs/minimal_with_config/input/trips.txt

This file was deleted.

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions tests/fixtures/gtfs2ntfs/minimal_with_config/output/feed_infos.txt

This file was deleted.

2 changes: 0 additions & 2 deletions tests/fixtures/gtfs2ntfs/minimal_with_config/output/trips.txt

This file was deleted.

2 changes: 0 additions & 2 deletions tests/fixtures/gtfs2ntfs/platforms/input/agency.txt

This file was deleted.

2 changes: 0 additions & 2 deletions tests/fixtures/gtfs2ntfs/platforms/input/calendar_dates.txt

This file was deleted.

2 changes: 0 additions & 2 deletions tests/fixtures/gtfs2ntfs/platforms/input/routes.txt

This file was deleted.

3 changes: 0 additions & 3 deletions tests/fixtures/gtfs2ntfs/platforms/input/stop_times.txt

This file was deleted.

4 changes: 0 additions & 4 deletions tests/fixtures/gtfs2ntfs/platforms/input/stops.txt

This file was deleted.

2 changes: 0 additions & 2 deletions tests/fixtures/gtfs2ntfs/platforms/input/trips.txt

This file was deleted.

5 changes: 0 additions & 5 deletions tests/fixtures/gtfs2ntfs/platforms/output/stops.txt

This file was deleted.

77 changes: 0 additions & 77 deletions tests/gtfs2ntfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,6 @@ static DEFAULT_CONFIGURATION: Configuration<&Path> = Configuration {
on_demand_transport_comment: None,
};

#[test]
fn test_frequencies_generate_trips() {
test_in_tmp_dir(|path| {
let input_dir = "./tests/fixtures/gtfs2ntfs/frequencies/input";
let model =
transit_model::gtfs::read_from_path(input_dir, DEFAULT_CONFIGURATION.clone()).unwrap();
transit_model::ntfs::write(&model, path, get_test_datetime()).unwrap();
compare_output_dir_with_expected(
&path,
Some(vec![
"calendar_dates.txt",
"calendar.txt",
"trips.txt",
"stop_times.txt",
"object_codes.txt",
]),
"./tests/fixtures/gtfs2ntfs/frequencies/output",
);
});
}

#[test]
fn test_gtfs() {
test_in_tmp_dir(|path| {
Expand Down Expand Up @@ -71,32 +50,6 @@ fn test_minimal_gtfs() {
});
}

#[test]
fn test_minimal_gtfs_with_feed_infos() {
test_in_tmp_dir(|path| {
let input_dir = "./tests/fixtures/gtfs2ntfs/minimal_with_config/input";
let configuration = transit_model::gtfs::Configuration {
config_path: Some("./tests/fixtures/gtfs2ntfs/config.json"),
prefix: None,
on_demand_transport: false,
on_demand_transport_comment: None,
};

let model = transit_model::gtfs::read_from_path(input_dir, configuration).unwrap();
transit_model::ntfs::write(&model, path, get_test_datetime()).unwrap();
compare_output_dir_with_expected(
&path,
Some(vec![
"contributors.txt",
"trips.txt",
"datasets.txt",
"feed_infos.txt",
]),
"./tests/fixtures/gtfs2ntfs/minimal_with_config/output",
);
});
}

#[test]
fn test_gtfs_physical_modes() {
test_in_tmp_dir(|path| {
Expand Down Expand Up @@ -172,36 +125,6 @@ fn test_minimal_ziped_sub_dir_gtfs_with_hidden_files() {
});
}

#[test]
fn test_gtfs_with_platforms() {
test_in_tmp_dir(|path| {
let input_dir = "./tests/fixtures/gtfs2ntfs/platforms/input";
let model =
transit_model::gtfs::read_from_path(input_dir, DEFAULT_CONFIGURATION.clone()).unwrap();
transit_model::ntfs::write(&model, path, get_test_datetime()).unwrap();
compare_output_dir_with_expected(
&path,
Some(vec!["stops.txt"]),
"./tests/fixtures/gtfs2ntfs/platforms/output",
);
});
}

#[test]
fn test_gtfs_with_levels() {
test_in_tmp_dir(|path| {
let input_dir = "./tests/fixtures/gtfs2ntfs/levels_and_pathways/input";
let model =
transit_model::gtfs::read_from_path(input_dir, DEFAULT_CONFIGURATION.clone()).unwrap();
transit_model::ntfs::write(&model, path, get_test_datetime()).unwrap();
compare_output_dir_with_expected(
&path,
Some(vec!["stops.txt", "pathways.txt", "levels.txt"]),
"./tests/fixtures/gtfs2ntfs/levels_and_pathways/output",
);
});
}

#[test]
fn test_minimal_gtfs_with_odt_comment() {
test_in_tmp_dir(|path| {
Expand Down

0 comments on commit f88a103

Please sign in to comment.