Skip to content

Commit

Permalink
make projectile-test-files show all files if no test files are found
Browse files Browse the repository at this point in the history
fixes #38
  • Loading branch information
wbolster committed Nov 7, 2021
1 parent 65ac155 commit 44c147c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python-pytest.el
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,8 @@ Example: ‘MyABCThingy.__repr__’ becomes ‘test_my_abc_thingy_repr’."
(->> (projectile-project-files (python-pytest--project-root))
(-sort 'string<)
(projectile-sort-by-recentf-first)
(projectile-test-files)))
;; show test files if any found, otherwise show everything
(funcall (-orfn #'projectile-test-files #'identity))))
(test-directories
(->> test-files
(-map 'file-name-directory)
Expand Down

0 comments on commit 44c147c

Please sign in to comment.