Skip to content

Commit

Permalink
Check refs to a publisher's own activities aren't counted
Browse files Browse the repository at this point in the history
(in end to end traceability tests)

#21
  • Loading branch information
Bjwebb committed Nov 15, 2022
1 parent dc14978 commit a326f70
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions tests_end_to_end/fixtures/data/funder2/funder2-activities.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
<transaction-date iso-date="2012-01-01" />
<value currency="EUR">1000</value>
</transaction>
<transaction>
<transaction-type code="1"/>
<transaction-date iso-date="2022-01-01" />
<value currency="GBP">1000</value>
<provider-org provider-activity-id="XE-EXAMPLE-BB-01" type="10" ref="XE-EXAMPLE-BB" />
</transaction>
</iati-activity>
<iati-activity>
<iati-identifier>XE-EXAMPLE-CC-03</iati-identifier>
Expand All @@ -23,4 +29,32 @@
<value currency="GBP">1000</value>
</transaction>
</iati-activity>
<iati-activity>
<iati-identifier>XE-EXAMPLE-CC-04</iati-identifier>
<transaction>
<transaction-type code="1"/>
<transaction-date iso-date="2022-01-01" />
<value currency="GBP">1000</value>
<provider-org provider-activity-id="XE-EXAMPLE-BB-01" type="10" ref="XE-EXAMPLE-BB" />
</transaction>
<transaction>
<transaction-type code="2"/>
<transaction-date iso-date="2022-01-01" />
<value currency="USD">1000</value>
</transaction>
</iati-activity>
<iati-activity>
<iati-identifier>XE-EXAMPLE-CC-05</iati-identifier>
<transaction>
<transaction-type code="1"/>
<transaction-date iso-date="2022-01-01" />
<value currency="GBP">1000</value>
<provider-org provider-activity-id="XE-EXAMPLE-CC-04" type="10" ref="XE-EXAMPLE-BB" />
</transaction>
<transaction>
<transaction-type code="2"/>
<transaction-date iso-date="2022-01-01" />
<value currency="USD">500</value>
</transaction>
</iati-activity>
</iati-activities>
2 changes: 1 addition & 1 deletion traceable_percentages.csv.expected
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
funder,1,1,100.0,0,0,
funder2,2,3,67,2284.4666822899517,3869.2116470760116,59
funder2,2,5,40,2284.4666822899517,5369.211647076011,43

0 comments on commit a326f70

Please sign in to comment.