branch: elpa/flymake-pyrefly
commit 85e56cbf8fdd78ea4fa1b36f8cc941b6f5389390
Author: Boris Shminke <[email protected]>
Commit: Boris Shminke <[email protected]>
tests -> test
---
.elpaignore | 2 +-
{tests => test}/example.py | 0
{tests => test}/test-flymake-pyrefly.el | 5 +++--
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/.elpaignore b/.elpaignore
index ada35494d1f..dea79dbef39 100644
--- a/.elpaignore
+++ b/.elpaignore
@@ -1,4 +1,4 @@
Makefile
-tests
+test
.github
.gitignore
diff --git a/tests/example.py b/test/example.py
similarity index 100%
rename from tests/example.py
rename to test/example.py
diff --git a/tests/test-flymake-pyrefly.el b/test/test-flymake-pyrefly.el
similarity index 94%
rename from tests/test-flymake-pyrefly.el
rename to test/test-flymake-pyrefly.el
index 9d7b487a7fa..b6104d8f11e 100644
--- a/tests/test-flymake-pyrefly.el
+++ b/test/test-flymake-pyrefly.el
@@ -21,9 +21,10 @@
;;; Code:
(require 'flymake-pyrefly)
(require 'flymake)
+(require 'f)
(ert-deftest flymake-pyrefly-test-no-pyrefly ()
"Test error message when Pyrefly is not found."
- (find-file "tests/example.py")
+ (find-file (f-join "test" "example.py"))
(should-error (pyrefly-flymake-backend 'identity)
:type 'no-pyrefly-error))
(ert-deftest flymake-pyrefly-test-normal-use-case ()
@@ -31,7 +32,7 @@
(defun mock-report-fn (args)
(setq saved-args args))
(push (getenv "PYREFLY_BIN_DIR") exec-path)
- (find-file "tests/example.py")
+ (find-file (f-join "test" "example.py"))
(setq saved-args nil)
(pyrefly-flymake-backend 'mock-report-fn)
(pyrefly-flymake-backend 'mock-report-fn)