-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [WIP] The first stage of
nox
implementation (#468)
- Loading branch information
Showing
5 changed files
with
58 additions
and
64 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,8 +1,16 @@ | ||
*.egg-info | ||
*.py[co] | ||
build/ | ||
*.sw[op] | ||
.tox/ | ||
|
||
# Packages | ||
*.egg-info | ||
build | ||
MANIFEST | ||
dist/ | ||
dist | ||
django_tests | ||
|
||
# Unit test / coverage reports | ||
.coverage | ||
.nox | ||
|
||
# JetBrains | ||
.idea |
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,33 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright 2020 Google LLC | ||
# | ||
# Use of this source code is governed by a BSD-style | ||
# license that can be found in the LICENSE file or at | ||
# https://developers.google.com/open-source/licenses/bsd | ||
|
||
|
||
from __future__ import absolute_import | ||
|
||
import nox | ||
import os | ||
|
||
|
||
def default(session): | ||
# Install all test dependencies, then install this package in-place. | ||
session.install("mock", "pytest", "pytest-cov") | ||
session.install("-e", ".") | ||
|
||
# Run py.test against the unit tests. | ||
session.run( | ||
"py.test", | ||
"--quiet", | ||
os.path.join("tests", "spanner_dbapi"), | ||
*session.posargs, | ||
) | ||
|
||
|
||
@nox.session(python=["3.5", "3.6", "3.7", "3.8"]) | ||
def unit(session): | ||
"""Run the unit test suite.""" | ||
default(session) |
This file was deleted.
Oops, something went wrong.