X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/1747c388bba0c87f75a6239d56e3b51f7455e93d..c891c65b6b2de7c257244cc409276b485130c275:/tests/function2.py?ds=sidebyside diff --git a/tests/function2.py b/tests/function2.py index 1b9d7b6..e262e05 100644 --- a/tests/function2.py +++ b/tests/function2.py @@ -2,6 +2,11 @@ def f( a, **kwargs, ) -> A: + with cache_dir(): + if something: + result = ( + CliRunner().invoke(black.main, [str(src1), str(src2), "--diff", "--check"]) + ) return A( very_long_argument_name1=very_long_value_for_the_argument, very_long_argument_name2=very_long_value_for_the_argument, @@ -11,6 +16,11 @@ def f( # output def f(a, **kwargs) -> A: + with cache_dir(): + if something: + result = CliRunner().invoke( + black.main, [str(src1), str(src2), "--diff", "--check"] + ) return A( very_long_argument_name1=very_long_value_for_the_argument, very_long_argument_name2=very_long_value_for_the_argument,