You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a dataset of postcode and it has been used in one test.
In other unit tests some function are tested passing a postcode as parameter. I would like to sample a single postcode from the previous dataset instead of use it hardcoded in my tests's codes.
Is there some dataset manipulation function to sample or get a specific item from the dataset?
Right now I'm doing it as below but since Datasets is marked as internal, it isn't "correct"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a dataset of postcode and it has been used in one test.
In other unit tests some function are tested passing a postcode as parameter. I would like to sample a single postcode from the previous dataset instead of use it hardcoded in my tests's codes.
Is there some dataset manipulation function to sample or get a specific item from the dataset?
Right now I'm doing it as below but since
Datasets
is marked asinternal
, it isn't "correct"Beta Was this translation helpful? Give feedback.
All reactions