(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))))))
+
+
+\f
+;;; PDB Track integration
+
+\f
+;;; Symbol completion
+
+(ert-deftest python-completion-at-point-1 ()
(skip-unless (executable-find python-tests-shell-interpreter))
(python-tests-with-temp-buffer-with-shell
"
(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
(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
(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
"
(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
(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
"
(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
"
(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))))))
-
-
-\f
-;;; PDB Track integration
-
-\f
-;;; Symbol completion
-
\f
;;; Fill paragraph