From a6585e9a63e1601c4a37f3a1bb8fd0722dd6b51c Mon Sep 17 00:00:00 2001 From: Eugene Kalinin Date: Tue, 4 Jun 2024 23:08:24 +0300 Subject: [PATCH] Add a couple of tests --- tests/nodeenv_test.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/nodeenv_test.py b/tests/nodeenv_test.py index 6094c16..d28d42b 100644 --- a/tests/nodeenv_test.py +++ b/tests/nodeenv_test.py @@ -167,3 +167,14 @@ def test_parse_version(): assert nodeenv.parse_version("v21.7") == (21, 7) assert nodeenv.parse_version("v21.7.3") == (21, 7, 3) assert nodeenv.parse_version("v21.7.3+0-b20240228T18452699") == (21, 7, 3) + + +def test_clear_output(): + assert nodeenv.clear_output( + bytes('some \ntext', 'utf-8')) == 'some text' + + +def test_remove_env_bin_from_path(): + assert (nodeenv.remove_env_bin_from_path( + '//home://home/env/bin://home/bin', '//home/env/bin') + == '//home://home/bin')