agritheory / test_utils

Common Test Utilities and Fixtures for AgriTheory Projects
2 stars 3 forks source link

feat(fixtures): fixtures data for items #36

Closed MyuddinKhatri closed 1 month ago

MyuddinKhatri commented 1 month ago

Issue - https://github.com/agritheory/test_utils/issues/10 Fixtures data for Items and Item Groups collected from beam and inventory_tools

MyuddinKhatri commented 1 month ago

@agritheory should we include item groups as well? and should we also start incorporating methods to create this master data on the site?

agritheory commented 1 month ago

@MyuddinKhatri Item Groups, yes. In the case of the "builder" functions, I think we can start including them in the repo too. I'm not certain what the function signature should be, but I think we may want to allow for the creation of specific items.

MyuddinKhatri commented 1 month ago

@agritheory I added builder functions to create Items and Item Groups. please check.

MyuddinKhatri commented 1 month ago

@agritheory I updated the fixtures to contain all the data in JSON itself so can be directly inserted. Please check this out.