Skip to content

Commit 879176b

Browse files
author
Jon Wayne Parrott
committed
Adding some helpful comments to the noxfile.
1 parent 41034ff commit 879176b

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

conftest.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2016 Google Inc. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
import os
216

317
import pytest

nox.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2016 Google Inc. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
import fnmatch
216
import os
317
import tempfile
@@ -86,8 +100,12 @@ def session_tests(session, interpreter, extra_pytest_args=None):
86100
session.install(REPO_TOOLS_REQ)
87101
session.install('-r', 'requirements-{}-dev.txt'.format(interpreter))
88102

103+
# extra_pytest_args can be send by another session calling this session,
104+
# see session_travis.
89105
pytest_args = COMMON_PYTEST_ARGS + (extra_pytest_args or [])
90106

107+
# session.posargs is any leftover arguments from the command line, which
108+
# allows users to run a particular test instead of all of them.
91109
for sample in (session.posargs or SAMPLES):
92110
session.run(
93111
'py.test', sample,

0 commit comments

Comments
 (0)