Refactoring et mise en place des tests
This commit is contained in:
5
test/data/debian/dummy-project/debian/changelog
Normal file
5
test/data/debian/dummy-project/debian/changelog
Normal file
@ -0,0 +1,5 @@
|
||||
dummy-project (0.0.1) unstable; urgency=low
|
||||
|
||||
* Dev release
|
||||
|
||||
-- William Petit <wpetit@cadoles.com> Fri, 16 Oct 2015 15:57:03 +0200
|
1
test/data/debian/dummy-project/debian/compat
Normal file
1
test/data/debian/dummy-project/debian/compat
Normal file
@ -0,0 +1 @@
|
||||
9
|
13
test/data/debian/dummy-project/debian/control
Normal file
13
test/data/debian/dummy-project/debian/control
Normal file
@ -0,0 +1,13 @@
|
||||
Source: dummy-project
|
||||
Section: unknown
|
||||
Priority: optional
|
||||
Maintainer: William Petit <wpetit@cadoles.com>
|
||||
Build-Depends: debhelper (>= 8.0.0)
|
||||
Standards-Version: 3.9.4
|
||||
Homepage:
|
||||
Vcs-Git: https://forge.cadoles.com/wpetit/tamarin.git
|
||||
Vcs-Browser: https://forge.cadoles.com/wpetit/tamarin
|
||||
|
||||
Package: dummy-project
|
||||
Architecture: any
|
||||
Description: Projet test pour la construction de paquets via Tamarin
|
8
test/data/debian/dummy-project/debian/rules
Normal file
8
test/data/debian/dummy-project/debian/rules
Normal file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
export DH_VERBOSE=1
|
||||
|
||||
%:
|
||||
dh $@
|
1
test/data/debian/dummy-project/debian/source/format
Normal file
1
test/data/debian/dummy-project/debian/source/format
Normal file
@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
16
test/package_test.py
Normal file
16
test/package_test.py
Normal file
@ -0,0 +1,16 @@
|
||||
import unittest, os
|
||||
from importlib.machinery import SourceFileLoader
|
||||
|
||||
package = SourceFileLoader('package', os.path.dirname(__file__) + '/../package').load_module()
|
||||
|
||||
class TestPackage(unittest.TestCase):
|
||||
|
||||
def test_args_parser(self):
|
||||
parser = package.create_args_parser()
|
||||
|
||||
def test_download_and_extract_rkt(self):
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
Reference in New Issue
Block a user