Skip to content

Commit d4485af

Browse files
committed
Update tests to check record=False
1 parent c9cdad3 commit d4485af

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

readthedocs/rtd_tests/tests/test_celery.py

+12-8
Original file line numberDiff line numberDiff line change
@@ -592,17 +592,17 @@ def test_build_tools(self, load_config, build_run):
592592
[
593593
mock.call('asdf', 'install', 'python', python_version),
594594
mock.call('asdf', 'global', 'python', python_version),
595-
mock.call('asdf', 'reshim', 'python'),
595+
mock.call('asdf', 'reshim', 'python', record=False),
596596
mock.call('python', '-mpip', 'install', '-U', 'virtualenv', 'setuptools'),
597597
mock.call('asdf', 'install', 'nodejs', nodejs_version),
598598
mock.call('asdf', 'global', 'nodejs', nodejs_version),
599-
mock.call('asdf', 'reshim', 'nodejs'),
599+
mock.call('asdf', 'reshim', 'nodejs', record=False),
600600
mock.call('asdf', 'install', 'rust', rust_version),
601601
mock.call('asdf', 'global', 'rust', rust_version),
602-
mock.call('asdf', 'reshim', 'rust'),
602+
mock.call('asdf', 'reshim', 'rust', record=False),
603603
mock.call('asdf', 'install', 'golang', golang_version),
604604
mock.call('asdf', 'global', 'golang', golang_version),
605-
mock.call('asdf', 'reshim', 'golang'),
605+
mock.call('asdf', 'reshim', 'golang', record=False),
606606
mock.ANY,
607607
],
608608
)
@@ -668,30 +668,34 @@ def test_build_tools_cached(self, load_config, build_run, build_tools_storage, t
668668
# and on CircleCI
669669
mock.ANY,
670670
f'/home/docs/.asdf/installs/python/{python_version}',
671+
record=False,
671672
),
672673
mock.call('asdf', 'global', 'python', python_version),
673-
mock.call('asdf', 'reshim', 'python'),
674+
mock.call('asdf', 'reshim', 'python', record=False),
674675
mock.call(
675676
'mv',
676677
mock.ANY,
677678
f'/home/docs/.asdf/installs/nodejs/{nodejs_version}',
679+
record=False,
678680
),
679681
mock.call('asdf', 'global', 'nodejs', nodejs_version),
680-
mock.call('asdf', 'reshim', 'nodejs'),
682+
mock.call('asdf', 'reshim', 'nodejs', record=False),
681683
mock.call(
682684
'mv',
683685
mock.ANY,
684686
f'/home/docs/.asdf/installs/rust/{rust_version}',
687+
record=False,
685688
),
686689
mock.call('asdf', 'global', 'rust', rust_version),
687-
mock.call('asdf', 'reshim', 'rust'),
690+
mock.call('asdf', 'reshim', 'rust', record=False),
688691
mock.call(
689692
'mv',
690693
mock.ANY,
691694
f'/home/docs/.asdf/installs/golang/{golang_version}',
695+
record=False,
692696
),
693697
mock.call('asdf', 'global', 'golang', golang_version),
694-
mock.call('asdf', 'reshim', 'golang'),
698+
mock.call('asdf', 'reshim', 'golang', record=False),
695699
mock.ANY,
696700
],
697701
)

0 commit comments

Comments
 (0)