From 929ef4d0e00e2f8bd9f348182a7ee6c46c96d2be Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Tue, 10 Apr 2018 11:47:09 -0400 Subject: [PATCH] Add test capturing expectation when no deps are indicated. Ref #25. --- rwt/tests/test_deps.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rwt/tests/test_deps.py b/rwt/tests/test_deps.py index 0fdbcfd..b6daa0f 100644 --- a/rwt/tests/test_deps.py +++ b/rwt/tests/test_deps.py @@ -36,3 +36,13 @@ def test_not_installed_args(self): expected.remove('rwt') filtered = deps.not_installed(args) assert list(filtered) == expected + + +class TestLoad: + def test_no_args_passes(self): + """ + If called with no arguments, load() should still provide + a context. + """ + with deps.load(): + pass