a2d5fb26e2faecf86eb2d0eb50de15f6822eca35

Author
Michael Aquilina <michaelaquilina@gmail.com>
Committer
Michael Aquilina <michaelaquilina@gmail.com>
Date

Message

Prefix tests with function name being tested

Diff

 1diff --git a/tests/test_check_venv_path.zunit b/tests/test_check_venv_path.zunit
 2index 0e208e15d306ee87057da3b1f0ac384c6d97cdc0..c844f40caa06de10a203ab1ff7c053bc0be6cf17 100644
 3--- a/tests/test_check_venv_path.zunit
 4+++ b/tests/test_check_venv_path.zunit
 5@@ -11,7 +11,7 @@
 6     rm -rf "$TARGET"
 7 }
 8 
 9-@test 'test finds in base directory' {
10+@test '_check_venv_path - test finds in base directory' {
11     touch "$TARGET/.venv"
12 
13     run _check_venv_path "$TARGET"
14@@ -20,14 +20,14 @@
15     assert "$output" same_as "$TARGET/.venv"
16 }
17 
18-@test 'returns nothing if not found' {
19+@test '_check_venv_path - returns nothing if not found' {
20    run _check_venv_path "$TARGET"
21 
22    assert $state equals 0
23    assert "$output" is_empty
24 }
25 
26-@test 'finds .venv in parent directories' {
27+@test '_check_venv_path - finds .venv in parent directories' {
28     touch "$TARGET/.venv"
29     mkdir "$TARGET/foo"
30 
31@@ -37,7 +37,7 @@
32     assert "$output" same_as "$TARGET/.venv"
33 }
34 
35-@test 'returns nothing with root path' {
36+@test '_check_venv_path - returns nothing with root path' {
37     run _check_venv_path '/'
38 
39     assert $state equals 0
40diff --git a/tests/test_maybeworkon.zunit b/tests/test_maybeworkon.zunit
41index cad1201a2d51e8be16520e9e4c50b4544b703dd6..bac535b930523447b6b8d60430a46a94f1f678c9 100644
42--- a/tests/test_maybeworkon.zunit
43+++ b/tests/test_maybeworkon.zunit
44@@ -21,7 +21,7 @@
45 }
46 
47 
48-@test 'switches virtualenv if nothing is activated' {
49+@test '_maybeworkon - switches virtualenv if nothing is activated' {
50     VIRTUAL_ENV=""
51 
52     run _maybeworkon foobar
53@@ -30,7 +30,7 @@
54     assert "$output" same_as "Switching virtualenv: foobar  [$PYTHON_VERSION]"
55 }
56 
57-@test 'switches virtualenv if current virtualenv is different' {
58+@test '_maybeworkon - switches virtualenv if current virtualenv is different' {
59     VIRTUAL_ENV="$HOME/.virtualenvs/default_venv"
60 
61     run _maybeworkon foobar
62@@ -39,7 +39,7 @@
63     assert "$output" contains "Switching virtualenv: foobar  [$PYTHON_VERSION]"
64 }
65 
66-@test 'switches virtualenv if current virtualenv is different (silent)' {
67+@test '_maybeworkon - switches virtualenv if current virtualenv is different (silent)' {
68     VIRTUAL_ENV="$HOME/.virtualenvs/default_venv"
69     AUTOSWITCH_SILENT="1"
70 
71@@ -49,7 +49,7 @@
72     assert "$output" is_empty
73 }
74 
75-@test 'does not switch to already activated virtualenv' {
76+@test '_maybeworkon - does not switch to already activated virtualenv' {
77     VIRTUAL_ENV="$HOME/.virtualenvs/bwaaah"
78 
79     run _maybeworkon bwaaah