Fix some test errors
- Legacy-Id: 12787
This commit is contained in:
parent
ea93001c63
commit
0d5bc33283
|
@ -6,7 +6,8 @@ from tastypie.cache import SimpleCache
|
|||
|
||||
from ietf import api
|
||||
|
||||
from ietf.person.models import Person, Email, Alias, PersonHistory
|
||||
from ietf.person.models import (Person, Email, Alias, PersonHistory,
|
||||
AffiliationAlias, AffiliationIgnoredEnding)
|
||||
|
||||
|
||||
from ietf.utils.resources import UserResource
|
||||
|
@ -82,3 +83,28 @@ class PersonHistoryResource(ModelResource):
|
|||
}
|
||||
api.person.register(PersonHistoryResource())
|
||||
|
||||
class AffiliationIgnoredEndingResource(ModelResource):
|
||||
class Meta:
|
||||
queryset = AffiliationIgnoredEnding.objects.all()
|
||||
serializer = api.Serializer()
|
||||
cache = SimpleCache()
|
||||
#resource_name = 'affiliationignoredending'
|
||||
filtering = {
|
||||
"id": ALL,
|
||||
"ending": ALL,
|
||||
}
|
||||
api.person.register(AffiliationIgnoredEndingResource())
|
||||
|
||||
class AffiliationAliasResource(ModelResource):
|
||||
class Meta:
|
||||
queryset = AffiliationAlias.objects.all()
|
||||
serializer = api.Serializer()
|
||||
cache = SimpleCache()
|
||||
#resource_name = 'affiliationalias'
|
||||
filtering = {
|
||||
"id": ALL,
|
||||
"alias": ALL,
|
||||
"name": ALL,
|
||||
}
|
||||
api.person.register(AffiliationAliasResource())
|
||||
|
||||
|
|
|
@ -408,6 +408,7 @@ TEST_CODE_COVERAGE_EXCLUDE = [
|
|||
"ietf/utils/test_runner.py",
|
||||
"name/generate_fixtures.py",
|
||||
"review/import_from_review_tool.py",
|
||||
"stats/backfill_data.py",
|
||||
]
|
||||
|
||||
# These are filename globs. They are used by test_parse_templates() and
|
||||
|
|
Loading…
Reference in a new issue