Mark Bergsma has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/355416 )

Change subject: Move BGP tests into a sub package and add to pybal test suite
......................................................................

Move BGP tests into a sub package and add to pybal test suite

While the BGP package is shipped with pybal, ensure its (separate)
tests run as part of the pybal test suite.

Change-Id: If6e0b9aa433bfbb61e47404e04347584842d921c
---
A pybal/bgp/test/__init__.py
R pybal/bgp/test/test_bgp.py
R pybal/bgp/test/test_ip.py
M pybal/test/__init__.py
4 files changed, 15 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/debs/pybal 
refs/changes/16/355416/1

diff --git a/pybal/bgp/test/__init__.py b/pybal/bgp/test/__init__.py
new file mode 100644
index 0000000..720c357
--- /dev/null
+++ b/pybal/bgp/test/__init__.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+"""
+  PyBal unit tests
+  ~~~~~~~~~~~~~~~~
+
+  This module is the main entry point for the unit tests.
+
+"""
+# flake8: noqa
+
+from .test_ip import *
+from .test_bgp import *
diff --git a/pybal/bgp/test_bgp.py b/pybal/bgp/test/test_bgp.py
similarity index 99%
rename from pybal/bgp/test_bgp.py
rename to pybal/bgp/test/test_bgp.py
index 42a734b..9bb2f76 100644
--- a/pybal/bgp/test_bgp.py
+++ b/pybal/bgp/test/test_bgp.py
@@ -7,8 +7,7 @@
 
 """
 
-import ip
-import bgp
+from bgp import ip, bgp
 
 import unittest, mock
 
diff --git a/pybal/bgp/test_ip.py b/pybal/bgp/test/test_ip.py
similarity index 99%
rename from pybal/bgp/test_ip.py
rename to pybal/bgp/test/test_ip.py
index c062f46..ab7b7ba 100644
--- a/pybal/bgp/test_ip.py
+++ b/pybal/bgp/test/test_ip.py
@@ -6,7 +6,7 @@
   This module contains tests for `bgp.ip`.
 
 """
-import ip
+from bgp import ip
 
 from unittest import TestCase
 
diff --git a/pybal/test/__init__.py b/pybal/test/__init__.py
index 5806cf3..b99e444 100644
--- a/pybal/test/__init__.py
+++ b/pybal/test/__init__.py
@@ -13,3 +13,4 @@
 from .test_monitor import *
 from .test_util import *
 from .test_instrumentation import *
+from ..bgp.test import *

-- 
To view, visit https://gerrit.wikimedia.org/r/355416
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If6e0b9aa433bfbb61e47404e04347584842d921c
Gerrit-PatchSet: 1
Gerrit-Project: operations/debs/pybal
Gerrit-Branch: master
Gerrit-Owner: Mark Bergsma <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to