'setup_controllers' was being called outside of the fake fs mock,
so the tests would fail if there was no real dist folder.
Fixes: https://tracker.ceph.com/issues/45516
Signed-off-by: Tiago Melo <tmelo@suse.com>
cls.fs.create_file(
os.path.join(lang.DEFAULT_LANGUAGE_PATH, 'index.html'),
contents='<!doctype html><html lang="en"><body></body></html>')
- cls.setup_controllers([HomeController])
+ cls.setup_controllers([HomeController])
@mock.patch(FakeFsMixin.builtins_open, new=FakeFsMixin.f_open)
@mock.patch('os.stat', new=FakeFsMixin.f_os.stat)