Skip to content

Refactor unit tests

James Liu requested to merge jliu-test-env into main

What does this MR do?

Refactors the unit tests:

  • Modifies some unit tests to call t.Setenv rather than os.Setenv. The former provides inbuilt cleanup and restores the previous value of the env var once the test has concluded. See !42 (comment 1212968032)
  • Uses table tests consistently.
  • Uses testify consistently.

What are the relevant issue numbers?

N/A

Does this MR meet the acceptance criteria?

Edited by Lucas Charles

Merge request reports