-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from pwyf/activity-scope-split
test defns: Split location into with/without activity-scope exclusion
- Loading branch information
Showing
2 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
..._definitions/project_attributes/21_sub-national_location_activity_scope_exclusion.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@iati-activity | ||
Feature: Sub-national location (with activity-scope exclusion) | ||
|
||
Scenario Outline: Location (sub-national) (with activity-scope exclusion) | ||
Given an IATI activity | ||
And the activity is current | ||
# The exclusion on the next line will only apply for some organisations | ||
And `activity-scope/@code` is not any of 1, 2, 3 or 4 | ||
And `activity-status/@code` is one of 2, 3 or 4 | ||
And `recipient-region/@code` is not 998 | ||
And `default-aid-type/@code` is not any of B01, B02, F01, H01, H02, H03, H04, H05 or G01 | ||
And `transaction/aid-type/@code` is not any of B01, B02, F01, H01, H02, H03, H04, H05 or G01 | ||
Then `location` should be present | ||
|
||
Scenario Outline: Location (sub-national) point or administrative or location-id (with activity-scope exclusion) | ||
Given an IATI activity | ||
And the activity is current | ||
# The exclusion on the next line will only apply for some organisations | ||
And `activity-scope/@code` is not any of 1, 2, 3 or 4 | ||
And `activity-status/@code` is one of 2, 3 or 4 | ||
And `recipient-region/@code` is not 998 | ||
And `default-aid-type/@code` is not any of B01, B02, F01, H01, H02, H03, H04, H05 or G01 | ||
And `transaction/aid-type/@code` is not any of B01, B02, F01, H01, H02, H03, H04, H05 or G01 | ||
Then `location/point` should be present, or at least one `location/administrative/@vocabulary | location/location-id/@vocabulary` should be on the GeographicVocabulary codelist |