Skip to content

Commit fd6da60

Browse files
committed
Added test sessions
1 parent 8ca639a commit fd6da60

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

remove-json-keys/noxfile.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
def session(func) : return nox.session(venv_backend='none')(func)
44

5+
@session
6+
def test(session) : session.run('python', '-m', 'remove_json_keys', *session.posargs, env={'PYTHONPATH': 'src'})
7+
@session
8+
def test_build(session) : session.run('pip', 'install', '-e', '.') ; session.run('remove_json_keys', *session.posargs)
9+
510
@session
611
def bump(session) : session.run('python', 'utils/bump.py', *session.posargs)
712
@session

translate-messages/noxfile.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
def session(func) : return nox.session(venv_backend='none')(func)
44

5+
@session
6+
def test(session) : session.run('python', '-m', 'translate_messages', *session.posargs, env={'PYTHONPATH': 'src'})
7+
@session
8+
def test_build(session) : session.run('pip', 'install', '-e', '.') ; session.run('translate-messages', *session.posargs)
9+
510
@session
611
def bump(session) : session.run('python', 'utils/bump.py', *session.posargs)
712
@session

0 commit comments

Comments
 (0)