-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from niyue/feature/custom-style
Allow specifying custom styles.
- Loading branch information
Showing
7 changed files
with
86 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
dist | ||
pcvis/__pycache__ | ||
tests/__pycache__ | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# 0.2.0 - 2022-12-01 | ||
* Add python 3.6 support | ||
* Customizable output styles | ||
# 0.1.0 - 2022-12-01 | ||
* Initial release, support parsing and visualizing pcstat's per page status output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from pcvis.pcvis import parse_sys_args | ||
from unittest import TestCase | ||
|
||
|
||
def assert_dict_equal(d1, d2): | ||
TestCase().assertDictEqual(d1, d2) | ||
|
||
|
||
def test_empty_args_should_use_default_style(): | ||
args = parse_sys_args([]) | ||
assert_dict_equal( | ||
args, | ||
{"style": 0}, | ||
) | ||
|
||
|
||
def test_custom_style(): | ||
args = parse_sys_args(["--style", "1"]) | ||
assert_dict_equal( | ||
args, | ||
{"style": 1}, | ||
) |
File renamed without changes.