Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IATI XML import may fail partially if Currency doesn't already exist #2382

Closed
punchagan opened this issue Sep 28, 2016 · 1 comment
Closed
Assignees

Comments

@punchagan
Copy link
Contributor

Adding an assertion self.assertEqual(project_v2.transactions.count(), 1) to akvo.rsr.tests.iati_import.test_iati_import.IatiImportTestCase.test_iati_v2_import causes the test to fail.

@punchagan punchagan self-assigned this Sep 28, 2016
punchagan added a commit that referenced this issue Sep 28, 2016
codelist_value sometimes returns strings, and strings don't have name
attributes.  This causes the transactions to be failed to be imported in
the IATI import tests.
zzgvh added a commit that referenced this issue Oct 6, 2016
The lookup of the transaction currency name from the codelist is incorrectly using utils.codelist_value. Fix by using utils.codelist_name() and also simplify Transaction.__unicode__().
zzgvh added a commit that referenced this issue Oct 6, 2016
Specifically to test the transaction currency name lookup.
punchagan added a commit that referenced this issue Oct 6, 2016
@punchagan punchagan added this to the 3.17 Ulaanbaatar milestone Oct 6, 2016
@punchagan
Copy link
Contributor Author

Fixed in #2395

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

1 participant