Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gnikit committed Dec 29, 2021
1 parent 2efc2dc commit 49a6fb5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion fortls/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ def set_settings(args):
"max_line_length": args.max_line_length,
"max_comment_line_length": args.max_comment_line_length,
"disable_diagnostics": args.disable_diagnostics,

}
if args.hover_language is not None:
settings["hover_language"] = args.hover_language
Expand Down
3 changes: 2 additions & 1 deletion fortls/langserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ def only_dirs(paths: list[str], err_msg: list = []) -> list[str]:
continue
else:
msg: str = (
f"Directory '{p}' specified in Configuration settings file does not exist"
f"Directory '{p}' specified in Configuration settings file does not"
" exist"
)
if err_msg:
err_msg.append([2, msg])
Expand Down
6 changes: 4 additions & 2 deletions test/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@
root_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
sys.path.insert(0, root_dir)

from fortls.jsonrpc import (
from fortls.jsonrpc import ( # noqa: E402
path_to_uri,
read_rpc_messages,
write_rpc_notification,
write_rpc_request,
)

run_command = os.path.join(root_dir, "fortls.py --incrmental_sync --use_signature_help")
run_command = os.path.join(
root_dir, "fortls.py --incremental_sync --use_signature_help"
)
test_dir = os.path.join(root_dir, "test", "test_source")


Expand Down

0 comments on commit 49a6fb5

Please sign in to comment.