     (should (equal (company-ycmd--extract-meta-python data)
                    "foo(self, a, b) -> bar"))))
 
-(defun flycheck-ycmd-test-mode ()
-  (flycheck-ycmd-setup)
-  (ycmd-test-mode))
-
-(ert-deftest flycheck-ycmd-test-error ()
-  (let ((flycheck-checkers '(ycmd)))
-    (flycheck-ert-should-syntax-check
-     "test-error.cpp" 'flycheck-ycmd-test-mode
-     '(3 15 error "expected ';' at end of declaration list (FixIt available)"
-         :checker ycmd))))
-
-(ert-deftest flycheck-ycmd-test-warning ()
-  (let ((flycheck-checkers '(ycmd)))
-    (flycheck-ert-should-syntax-check
-     "test-warning.cpp" 'flycheck-ycmd-test-mode
-     '(5 13 warning "unused variable 'a'" :checker ycmd))))
-
-(flycheck-ert-initialize ycmd-test-resources-location)
-
 (ycmd-ert-deftest eldoc-info-at-point-on-keyword "test-eldoc.cpp" 'c++-mode
   :line 8 :column 8
   (should (equal (substring-no-properties (ycmd-eldoc--info-at-point))

    (should (string= (ycmd--json-encode data)
                     "{\"foo\":{}}"))))

(provide 'ycmd-test)

;;; ycmd-test.el ends here

        (should (= .line_num 5))))))

(ycmd-ert-deftest get-completions-python "test.py" 'python-mode
  :line 7 :column 3
  (skip-unless nil)
  (let ((response (ycmd-get-completions :sync)))
    (let-alist response
      (should (cl-some (lambda (c)
