c3 icon indicating copy to clipboard operation
c3 copied to clipboard

Update test style to separate structure and numerical data

Open lazyoracle opened this issue 4 years ago • 0 comments

Describe the missing feature

Current tests have a coupled design where the pickle files store the structure and numerical data as a regression/historical test. This becomes difficult to maintain in the long run and also difficult to change (in the rare cases when we need to).

Describe the solution you'd like

We want to separate the structure and the numerical content and possibly also get rid of pickle files if possible. Also, we should only check the structure when it is part of the contract or API (Ref: Programming by Contract for Python)

Describe alternatives you've considered

  • Storing everything in pickle files in the same repo
  • Storing everything in pickle files in another repo
  • Storing this binary data in some cloud server (if it very rarely changes)

Additional context

Add any other context or screenshots about the feature request here. Please feel free to suggest details about how you believe this feature request might be best implemented. If you have used similar features in other libraries, consider providing links or resources to example implementations.

lazyoracle avatar Aug 03 '21 15:08 lazyoracle