Skip to content

Commit 3efff54

Browse files
committed
add tests
1 parent b98990b commit 3efff54

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
matrix:
2323
os: [ubuntu-latest, macos-latest, windows-latest]
2424
# Testing across supported Python versions
25-
# python-version: ['3.10', '3.11', '3.12', '3.13']
25+
# python-version: [ '3.10', '3.11', '3.12', '3.13']
2626
python-version: [ '3.11']
2727

2828
steps:

tests/testcli.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
"""
2+
Created on 2026-02-01
3+
4+
@author: wf
5+
"""
6+
from basemkit.basetest import Basetest
7+
from wmg.cli import WalkMyGraphCmd
8+
from wmg.version import Version
9+
10+
class TestCli(Basetest):
11+
"""
12+
test command line handling
13+
"""
14+
15+
def setUp(self, debug=False, profile=True):
16+
Basetest.setUp(self, debug=debug, profile=profile)
17+
18+
def testVersion(self):
19+
"""
20+
test the version
21+
"""
22+
version=Version()
23+
cmd = WalkMyGraphCmd(version)
24+
self.assertIn(version.name, cmd.version_msg)
25+
self.assertIn(version.version, cmd.version_msg)

0 commit comments

Comments
 (0)