Fix mocked calls in unit/modules/archive_test.py

This is due to the changes in #18621
Merge pull request #18838 from rallytime/fix_archive_tests

Fix mocked calls in unit/modules/archive_test.py