summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkobarity <kobarity@gmail.com>2022-10-16 15:26:29 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-10-16 15:26:49 +0200
commit0e5fc2345d8ec72fd8f7ad51ce1e42040e0e91da (patch)
treea02701208d94d9754d106c2fa92382aba224d050 /test
parent494ccec94ede12a56c9fb2393a3c75260b8638a7 (diff)
downloademacs-0e5fc2345d8ec72fd8f7ad51ce1e42040e0e91da.tar.gz
Move and rename Python completion ERTs
* test/lisp/progmodes/python-tests.el (python-shell-completion-at-point-1) (python-shell-completion-at-point-native-1) (python-completion-at-point-1) (python-completion-at-point-2, python-completion-at-point-pdb-1) (python-completion-at-point-native-1) (python-completion-at-point-native-2) (python-completion-at-point-native-with-ffap-1) (python-completion-at-point-native-with-eldoc-1): Renamed tests (bug#58565).
Diffstat (limited to 'test')
-rw-r--r--test/lisp/progmodes/python-tests.el82
1 files changed, 41 insertions, 41 deletions
diff --git a/test/lisp/progmodes/python-tests.el b/test/lisp/progmodes/python-tests.el
index 71bd0e0d682..81c9217c62c 100644
--- a/test/lisp/progmodes/python-tests.el
+++ b/test/lisp/progmodes/python-tests.el
@@ -4396,7 +4396,41 @@ def foo():
(python-shell-interpreter "/some/path/to/bin/pypy"))
(should (python-shell-completion-native-interpreter-disabled-p))))
-(ert-deftest python-shell-completion-1 ()
+(ert-deftest python-shell-completion-at-point-1 ()
+ (skip-unless (executable-find python-tests-shell-interpreter))
+ (python-tests-with-temp-buffer-with-shell
+ ""
+ (python-shell-with-shell-buffer
+ (insert "import abc")
+ (comint-send-input)
+ (python-tests-shell-wait-for-prompt)
+ (insert "abc.")
+ (should (nth 2 (python-shell-completion-at-point)))
+ (end-of-line 0)
+ (should-not (nth 2 (python-shell-completion-at-point))))))
+
+(ert-deftest python-shell-completion-at-point-native-1 ()
+ (skip-unless (executable-find python-tests-shell-interpreter))
+ (python-tests-with-temp-buffer-with-shell
+ ""
+ (python-shell-completion-native-turn-on)
+ (python-shell-with-shell-buffer
+ (insert "import abc")
+ (comint-send-input)
+ (python-tests-shell-wait-for-prompt)
+ (insert "abc.")
+ (should (nth 2 (python-shell-completion-at-point)))
+ (end-of-line 0)
+ (should-not (nth 2 (python-shell-completion-at-point))))))
+
+
+
+;;; PDB Track integration
+
+
+;;; Symbol completion
+
+(ert-deftest python-completion-at-point-1 ()
(skip-unless (executable-find python-tests-shell-interpreter))
(python-tests-with-temp-buffer-with-shell
"
@@ -4411,7 +4445,7 @@ import abc
(insert "A")
(should (completion-at-point)))))
-(ert-deftest python-shell-completion-2 ()
+(ert-deftest python-completion-at-point-2 ()
"Should work regardless of the point in the Shell buffer."
(skip-unless (executable-find python-tests-shell-interpreter))
(python-tests-with-temp-buffer-with-shell
@@ -4427,7 +4461,7 @@ import abc
(insert "abc.")
(should (completion-at-point)))))
-(ert-deftest python-shell-completion-pdb-1 ()
+(ert-deftest python-completion-at-point-pdb-1 ()
"Should not complete PDB commands in Python buffer."
(skip-unless (executable-find python-tests-shell-interpreter))
(python-tests-with-temp-buffer-with-shell
@@ -4444,7 +4478,7 @@ print('Hello')
(insert "u")
(should-not (nth 2 (python-completion-at-point))))))
-(ert-deftest python-shell-completion-native-1 ()
+(ert-deftest python-completion-at-point-native-1 ()
(skip-unless (executable-find python-tests-shell-interpreter))
(python-tests-with-temp-buffer-with-shell
"
@@ -4460,7 +4494,7 @@ import abc
(insert "A")
(should (completion-at-point)))))
-(ert-deftest python-shell-completion-native-2 ()
+(ert-deftest python-completion-at-point-native-2 ()
"Should work regardless of the point in the Shell buffer."
(skip-unless (executable-find python-tests-shell-interpreter))
(python-tests-with-temp-buffer-with-shell
@@ -4477,7 +4511,7 @@ import abc
(insert "abc.")
(should (completion-at-point)))))
-(ert-deftest python-shell-completion-native-with-ffap-1 ()
+(ert-deftest python-completion-at-point-native-with-ffap-1 ()
(skip-unless (executable-find python-tests-shell-interpreter))
(python-tests-with-temp-buffer-with-shell
"
@@ -4493,7 +4527,7 @@ import abc
(python-ffap-module-path "abc.")
(should (completion-at-point)))))
-(ert-deftest python-shell-completion-native-with-eldoc-1 ()
+(ert-deftest python-completion-at-point-native-with-eldoc-1 ()
(skip-unless (executable-find python-tests-shell-interpreter))
(python-tests-with-temp-buffer-with-shell
"
@@ -4509,40 +4543,6 @@ import abc
(python-eldoc-function)
(should (completion-at-point)))))
-(ert-deftest python-shell-completion-shell-buffer-1 ()
- (skip-unless (executable-find python-tests-shell-interpreter))
- (python-tests-with-temp-buffer-with-shell
- ""
- (python-shell-with-shell-buffer
- (insert "import abc")
- (comint-send-input)
- (python-tests-shell-wait-for-prompt)
- (insert "abc.")
- (should (nth 2 (python-shell-completion-at-point)))
- (end-of-line 0)
- (should-not (nth 2 (python-shell-completion-at-point))))))
-
-(ert-deftest python-shell-completion-shell-buffer-native-1 ()
- (skip-unless (executable-find python-tests-shell-interpreter))
- (python-tests-with-temp-buffer-with-shell
- ""
- (python-shell-completion-native-turn-on)
- (python-shell-with-shell-buffer
- (insert "import abc")
- (comint-send-input)
- (python-tests-shell-wait-for-prompt)
- (insert "abc.")
- (should (nth 2 (python-shell-completion-at-point)))
- (end-of-line 0)
- (should-not (nth 2 (python-shell-completion-at-point))))))
-
-
-
-;;; PDB Track integration
-
-
-;;; Symbol completion
-
;;; Fill paragraph