Skip to content

Commit

Permalink
Move tests folder to root folder (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kludex authored Feb 28, 2023
1 parent 4ccfb3a commit 3929f8e
Show file tree
Hide file tree
Showing 52 changed files with 14 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
branch = False
# branch = True
omit =
multipart/tests/*
tests/*

[report]
# Regexes for lines to exclude from consideration
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: Upload Python Package

on:
push:
tags:
tags:
- '[0-9]+.[0-9]+.[0-9]+.*' # Run on every git tag with semantic versioning. i.e: 1.5.0 or 1.5.0rc1

permissions:
Expand Down
4 changes: 0 additions & 4 deletions MANIFEST.in

This file was deleted.

8 changes: 4 additions & 4 deletions multipart/__init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# This is the canonical package information.
__author__ = 'Andrew Dunham'
__license__ = 'Apache'
__author__ = "Andrew Dunham"
__license__ = "Apache"
__copyright__ = "Copyright (c) 2012-2013, Andrew Dunham"
__version__ = "0.0.6"
__version__ = "0.0.6"


from .multipart import (
FormParser,
MultipartParser,
QuerystringParser,
OctetStreamParser,
QuerystringParser,
create_form_parser,
parse_form,
)
13 changes: 4 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ description = "A streaming multipart parser for Python"
readme = "README.rst"
license = "Apache-2.0"
requires-python = ">=3.7"
authors = [
{ name = "Andrew Dunham", email = "andrew@du.nham.ca" },
]
authors = [{ name = "Andrew Dunham", email = "andrew@du.nham.ca" }]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
Expand Down Expand Up @@ -56,10 +54,7 @@ Source = "https://github.com/andrew-d/python-multipart"
path = "multipart/__init__.py"

[tool.hatch.build.targets.wheel]
packages = [
"multipart",
]
packages = ["multipart"]

[tool.hatch.build.targets.sdist]
include = [
"/multipart",
]
include = ["/multipart", "/tests"]
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test(ctx, all=False):
test_cmd.append('-m "not slow_test"')

# Test in this directory
test_cmd.append(os.path.join("multipart", "tests"))
test_cmd.append("tests")

# Run the command.
# TODO: why does this fail with pty=True?
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 2 additions & 4 deletions multipart/tests/test_multipart.py → tests/test_multipart.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import os
import sys
import glob
import yaml
import base64
import random
import tempfile
import unittest
Expand All @@ -12,9 +10,9 @@
slow_test,
)
from io import BytesIO
from unittest.mock import MagicMock, Mock, patch
from unittest.mock import Mock

from ..multipart import *
from multipart.multipart import *


# Get the current directory for our later test cases.
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ deps=
pytest-timeout
PyYAML
commands=
pytest --cov-report term-missing --cov-config .coveragerc --cov multipart --timeout=30 multipart/tests
pytest --cov-report term-missing --cov-config .coveragerc --cov multipart --timeout=30 tests

0 comments on commit 3929f8e

Please sign in to comment.