Skip to content

Commit

Permalink
fix lint tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blogh committed Feb 13, 2025
1 parent 9e153c9 commit 7941df8
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ def test_flag_load() -> None:
flag = Flag.load(cfg, is_local=False, **options)
assert (
flag
== Flag.MODE | Flag.TYPE | Flag.WAIT | Flag.USER | Flag.CLIENT | Flag.APPNAME | Flag.XMIN
== Flag.MODE
| Flag.TYPE
| Flag.WAIT
| Flag.USER
| Flag.CLIENT
| Flag.APPNAME
| Flag.XMIN
)


Expand Down Expand Up @@ -140,7 +146,17 @@ def test_lookup(tmp_path: Path) -> None:
no_header = {
"header": {k: False for k in ("show_instance", "show_system", "show_workers")}
}
columns = ("database", "user", "client", "cpu", "mem", "read", "write", "appname", "xmin")
columns = (
"database",
"user",
"client",
"cpu",
"mem",
"read",
"write",
"appname",
"xmin",
)
narrow = {k: {"hidden": True, "width": None, "color": None} for k in columns}
wide = {k: {"hidden": False, "width": None, "color": None} for k in columns}
minimal = {**no_header, **narrow}
Expand Down

0 comments on commit 7941df8

Please sign in to comment.