cern-sis / issues-inspire

0 stars 0 forks source link

fix flaky tests #476

Open drjova opened 3 weeks ago

drjova commented 3 weeks ago

We have to remove all the hardcoded control_numbers from tests https://github.com/search?q=repo%3Ainspirehep%2Finspirehep+control_number%22%3A+1%2C+language%3APython+path%3A%2F%5Ebackend%5C%2Ftests%5C%2F%2F&type=code

and replace them with something like:

record = create_record(...)
expected_control_number = record['control_number']