Skip to content
Permalink
Browse files

More provider check handling of extra fields

  • Loading branch information
nyalldawson committed Feb 20, 2018
1 parent 7711f13 commit 4af24bf87810d545c8e113c91d0078d00f5b3827
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/src/python/featuresourcetestbase.py
@@ -75,9 +75,9 @@ def testGetFeatures(self, source=None, extra_features=[], skip_features=[], chan
while it.nextFeature(f):
# expect feature to be valid
self.assertTrue(f.isValid())
# split off the first 5 attributes only - some source test datasets will include
# additional attributes which we ignore
attrs = f.attributes()[0:5]
# some source test datasets will include additional attributes which we ignore,
# so cherry pick desired attributes
attrs = [f['pk'], f['cnt'], f['name'], f['name2'], f['num_char']]
# force the num_char attribute to be text - some sources (e.g., delimited text) will
# automatically detect that this attribute contains numbers and set it as a numeric
# field

0 comments on commit 4af24bf

Please sign in to comment.
You can’t perform that action at this time.