Skip to content

Commit

Permalink
Small meta/project changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jhollowe committed Dec 13, 2024
1 parent d5d1eec commit 945ca38
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
"source.organizeImports": "explicit"
}
},
"cSpell.words": [
Expand Down
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
{
"label": "Clean Cache/tmp files",
"type": "shell",
"command": "rm -rf ./.mypy_cache/ ./.pytest_cache/ ./coverage.xml ./.coverage",
"command": "rm -rf ./.mypy_cache/ ./.pytest_cache/ ./dist/ ./coverage.xml ./.coverage README.txt",
"problemMatcher": [],
"group": {
"kind": "none"
Expand Down
2 changes: 1 addition & 1 deletion proxmoxer/backends/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ def upload_file_obj(self, file_obj, remote_path):
class Backend(CommandBaseBackend):
def __init__(self, *args, **kwargs):
self.session = LocalSession(*args, **kwargs)
self.target = "/"
self.target = "localhost"
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def test_repr_https(self):
def test_repr_local(self):
prox = core.ProxmoxAPI(backend="local")

assert repr(prox) == "ProxmoxAPI (local backend for /)"
assert repr(prox) == "ProxmoxAPI (local backend for localhost)"

def test_repr_openssh(self):
prox = core.ProxmoxAPI("host", user="user", backend="openssh")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_init(self):
back = local.Backend()

assert isinstance(back.session, local.LocalSession)
assert back.target == "/"
assert back.target == "localhost"


class TestLocalSession:
Expand Down

0 comments on commit 945ca38

Please sign in to comment.