project-koku / nise

A tool for generating sample cost usage data for testing purposes
GNU Affero General Public License v3.0
9 stars 15 forks source link

Define legal_entity to avoid randomly picking an entity #424

Closed samdoran closed 1 year ago

samdoran commented 1 year ago

When the legal_entity attribute is not defined, a random value is selected from self.LEGAL_ENTITY_CHOICES in MarketplaceGenerator._get_legal_entity(). This causes the test assertion to sometimes fail.

codecov[bot] commented 1 year ago

Codecov Report

Merging #424 (da11272) into main (598029e) will increase coverage by 0.0%. The diff coverage is n/a.

@@          Coverage Diff          @@
##            main    #424   +/-   ##
=====================================
  Coverage   93.6%   93.7%           
=====================================
  Files         59      59           
  Lines       4401    4401           
  Branches     616     616           
=====================================
+ Hits        4120    4122    +2     
+ Misses       153     152    -1     
+ Partials     128     127    -1