Skip to content

Commit

Permalink
Merge pull request #36 from pwyf/activity-scope-split
Browse files Browse the repository at this point in the history
test defns: Split location into with/without activity-scope exclusion
  • Loading branch information
Bjwebb committed Nov 8, 2023
2 parents 2700d32 + bff1f98 commit a544984
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ Feature: Sub-national location
Scenario Outline: Location (sub-national)
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
Expand All @@ -15,8 +13,6 @@ Feature: Sub-national location
Scenario Outline: Location (sub-national) point or administrative or location-id
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
Expand Down
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

0 comments on commit a544984

Please sign in to comment.