Merge ~barryprice/spade/+git/spade:tests into spade:master

Proposed by Barry Price
Status: Work in progress
Proposed branch: ~barryprice/spade/+git/spade:tests
Merge into: spade:master
Prerequisite: ~barryprice/spade/+git/spade:snapcraft
Diff against target: 57 lines (+25/-1)
5 files modified
.gitignore (+4/-0)
Makefile (+6/-1)
requirements.txt (+0/-0)
tests/unit/requirements.txt (+3/-0)
tests/unit/test_spade.py (+12/-0)
Reviewer Review Type Date Requested Status
Spade Developers Pending
Review via email: mp+394605@code.launchpad.net

Commit message

Initial test suite setup, dummy first test, not ready at all

To post a comment you must log in.

Unmerged commits

b7483f5... by Barry Price

Initial test suite setup, dummy first test, not ready at all

ef1426b... by Barry Price

Merge branch 'black' into snapcraft

fae038f... by Barry Price

Snapcraft fixes, and ignore built snap files

1734965... by Barry Price

Merge branch 'flake8' into black

6817bc5... by Barry Price

Merge branch 'master' into flake8

c85283a... by Barry Price

Typo

a86afa5... by Barry Price

Reformatted with black

aa2d273... by Barry Price

Address all Flake8 errors bar complexity (noqa: C901)

7e34f18... by Barry Price

Modernise, switch to python3 exclusively

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/.gitignore b/.gitignore
index 9d17685..a71dd9c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,5 @@
1spade_*.snap1spade_*.snap
2.coverage
3spade.json
4spade/__pycache__/
5tests/unit/__pycache__/
diff --git a/Makefile b/Makefile
index 0efca2a..2ae4507 100644
--- a/Makefile
+++ b/Makefile
@@ -19,4 +19,9 @@ snap: snap_clean
19snap_clean:19snap_clean:
20 rm -Rf $(tempfiles_snap)20 rm -Rf $(tempfiles_snap)
2121
22.PHONY: blacken lint clean snap snap_clean22unittest:
23 @tox -e unit
24
25test: lint unittest
26
27.PHONY: blacken lint clean snap snap_clean unittest test
diff --git a/requirements.txt b/requirements.txt
23new file mode 10064428new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/requirements.txt
diff --git a/tests/unit/requirements.txt b/tests/unit/requirements.txt
24new file mode 10064429new file mode 100644
index 0000000..27054f2
--- /dev/null
+++ b/tests/unit/requirements.txt
@@ -0,0 +1,3 @@
1mock
2pytest
3pytest-cov
diff --git a/tests/unit/test_spade.py b/tests/unit/test_spade.py
0new file mode 1006444new file mode 100644
index 0000000..316efe4
--- /dev/null
+++ b/tests/unit/test_spade.py
@@ -0,0 +1,12 @@
1import os
2import sys
3from unittest import mock, TestCase
4
5sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), ".."))
6
7import spade
8
9class SpadeTest(TestCase):
10
11 def test_spade(self):
12 self.assertEqual(2, 2)

Subscribers

People subscribed via source and target branches

to all changes: