Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [WIP] The first stage of nox implementation #468

Merged
merged 5 commits into from Aug 26, 2020
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 12 additions & 4 deletions .gitignore
@@ -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
.tox

# JetBrains
.idea
33 changes: 33 additions & 0 deletions noxfile.py
@@ -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=["2.7", "3.5", "3.6", "3.7", "3.8"])
c24t marked this conversation as resolved.
Show resolved Hide resolved
def unit(session):
"""Run the unit test suite."""
default(session)
30 changes: 0 additions & 30 deletions runtests.py

This file was deleted.

24 changes: 0 additions & 24 deletions tox.ini

This file was deleted.