diff options
author | Roger Gonzalez <roger@rogs.me> | 2020-07-17 09:19:06 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2020-07-17 09:19:06 -0300 |
commit | 9fe9310ccf4971f0d1976f9bdaafd04a68ea314b (patch) | |
tree | ff1d5d677d5b3c33ac7eb6252029f2a9d165d9b3 /.config/fisher/github.com/matchai/spacefish/tests/__sf_section_pyenv.test.fish | |
parent | 743caecfc68bb6d28f8de2e80bce671e42601c6a (diff) |
Deleted fisher stuff
Diffstat (limited to '.config/fisher/github.com/matchai/spacefish/tests/__sf_section_pyenv.test.fish')
-rw-r--r-- | .config/fisher/github.com/matchai/spacefish/tests/__sf_section_pyenv.test.fish | 159 |
1 files changed, 0 insertions, 159 deletions
diff --git a/.config/fisher/github.com/matchai/spacefish/tests/__sf_section_pyenv.test.fish b/.config/fisher/github.com/matchai/spacefish/tests/__sf_section_pyenv.test.fish deleted file mode 100644 index b9576800..00000000 --- a/.config/fisher/github.com/matchai/spacefish/tests/__sf_section_pyenv.test.fish +++ /dev/null @@ -1,159 +0,0 @@ -source $DIRNAME/spacefish_test_setup.fish - -function setup - spacefish_test_setup - mock pyenv version-name 0 "echo \"3.7.0\"" - mkdir -p /tmp/tmp-spacefish - cd /tmp/tmp-spacefish -end - -function teardown - rm -rf /tmp/tmp-spacefish - if test "$PYENV_VERSION" - set -e PYENV_VERSION - end -end - -test "Prints section when \$PYENV_VERSION is defined" - ( - set PYENV_VERSION 3.7.0 - - set_color --bold - echo -n "via " - set_color normal - set_color --bold yellow - echo -n "馃悕 3.7.0" - set_color normal - set_color --bold - echo -n " " - set_color normal - ) = (__sf_section_pyenv) -end - -test "Prints section when .python-version is present" - ( - touch /tmp/tmp-spacefish/.python-version - - set_color --bold - echo -n "via " - set_color normal - set_color --bold yellow - echo -n "馃悕 3.7.0" - set_color normal - set_color --bold - echo -n " " - set_color normal - ) = (__sf_section_pyenv) -end - -test "Prints section when requirements.txt is present" - ( - touch /tmp/tmp-spacefish/requirements.txt - - set_color --bold - echo -n "via " - set_color normal - set_color --bold yellow - echo -n "馃悕 3.7.0" - set_color normal - set_color --bold - echo -n " " - set_color normal - ) = (__sf_section_pyenv) -end - -test "Prints section when pyproject.toml is present" - ( - touch /tmp/tmp-spacefish/pyproject.toml - - set_color --bold - echo -n "via " - set_color normal - set_color --bold yellow - echo -n "馃悕 3.7.0" - set_color normal - set_color --bold - echo -n " " - set_color normal - ) = (__sf_section_pyenv) -end - -test "Prints section when a *.py file is present" - ( - touch /tmp/tmp-spacefish/testfile.py - - set_color --bold - echo -n "via " - set_color normal - set_color --bold yellow - echo -n "馃悕 3.7.0" - set_color normal - set_color --bold - echo -n " " - set_color normal - ) = (__sf_section_pyenv) -end - -test "Doesn't print the section when requirements.txt and *.py aren't present" - () = (__sf_section_pyenv) -end - -test "Changing SPACEFISH_PYENV_SYMBOL changes the displayed character" - ( - touch /tmp/tmp-spacefish/requirements.txt - set SPACEFISH_PYENV_SYMBOL "路 " - - set_color --bold - echo -n "via " - set_color normal - set_color --bold yellow - echo -n "路 3.7.0" - set_color normal - set_color --bold - echo -n " " - set_color normal - ) = (__sf_section_pyenv) -end - -test "Changing SPACEFISH_PYENV_PREFIX changes the character prefix" - ( - touch /tmp/tmp-spacefish/requirements.txt - set sf_exit_code 0 - set SPACEFISH_PYENV_PREFIX 路 - - set_color --bold - echo -n "路" - set_color normal - set_color --bold yellow - echo -n "馃悕 3.7.0" - set_color normal - set_color --bold - echo -n " " - set_color normal - ) = (__sf_section_pyenv) -end - -test "Changing SPACEFISH_PYENV_SUFFIX changes the character suffix" - ( - touch /tmp/tmp-spacefish/requirements.txt - set sf_exit_code 0 - set SPACEFISH_PYENV_SUFFIX 路 - - set_color --bold - echo -n "via " - set_color normal - set_color --bold yellow - echo -n "馃悕 3.7.0" - set_color normal - set_color --bold - echo -n "路" - set_color normal - ) = (__sf_section_pyenv) -end - -test "doesn't display the section when SPACEFISH_PYENV_SHOW is set to \"false\"" - ( - touch /tmp/tmp-spacefish/requirements.txt - set SPACEFISH_PYENV_SHOW false - ) = (__sf_section_pyenv) -end |