Skip to content

Commit

Permalink
validator: fold relation-gazdagret-filter-valid-good.yaml into code
Browse files Browse the repository at this point in the history
Change-Id: I8247c410ff1ecffe34cae09000370791436a9ae1
  • Loading branch information
vmiklos committed Aug 18, 2022
1 parent 9a661f3 commit f555e73
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
15 changes: 11 additions & 4 deletions src/validator/tests.rs
Expand Up @@ -15,10 +15,7 @@ use super::*;
/// Tests main(): valid relations.
#[test]
fn test_relations() {
let paths = [
"tests/data/relations.yaml",
"tests/data/relation-gazdagret-filter-valid-good.yaml",
];
let paths = ["tests/data/relations.yaml"];
for path in paths {
let argv = ["".to_string(), path.to_string()];
let mut buf: std::io::Cursor<Vec<u8>> = std::io::Cursor::new(Vec::new());
Expand Down Expand Up @@ -190,6 +187,16 @@ fn test_validate_filter_invalid_valid() {
assert_success(content);
}

/// Tests validate_filter_invalid_valid(): 1c is a valid filter item.
#[test]
fn test_validate_filter_invalid_valid2() {
let content = r#"filters:
'Budaörsi út':
valid: ['1c']
"#;
assert_success(content);
}

/// Tests the relation path: bad source type.
#[test]
fn test_relation_source_bad_type() {
Expand Down
3 changes: 0 additions & 3 deletions tests/data/relation-gazdagret-filter-valid-good.yaml

This file was deleted.

0 comments on commit f555e73

Please sign in to comment.