Skip to content

Commit 627b472

Browse files
committed
Merge pull request #47 from DominicOram/master
Use mock module and move tests
2 parents 5eda722 + 492a1e4 commit 627b472

59 files changed

Lines changed: 41 additions & 2325 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- name: Install Python packages
2424
run: |
25-
pip install pytest==3.10.1; pip install pytest-xdist==1.26.1; pip install scipy==1.2.1; pip install nose==1.3.7
25+
pip install pytest==3.10.1; pip install pytest-xdist==1.26.1; pip install scipy==1.2.1; pip install nose==1.3.7; pip install mock==3.0.5
2626
echo "PYTEST=pytest -W ignore::PendingDeprecationWarning" >> $GITHUB_ENV
2727
if: matrix.flavour == 'python'
2828

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
SixCircleGeometry, Fivec, Fourc
4343
from diffcalc.hardware import DummyHardwareAdapter
4444
from diffcalc.hardware import ScannableHardwareAdapter
45-
from test.tools import aneq_, mneq_
45+
from diffcalc.tests.tools import aneq_, mneq_
4646
from diffcalc.ub.persistence import UbCalculationNonPersister
4747
from diffcalc.util import DiffcalcException, MockRawInput
48-
from test.diffcalc import scenarios
48+
from diffcalc.tests import scenarios
4949
import diffcalc.util # @UnusedImport to overide raw_input
5050
from diffcalc.gdasupport.minigda.command import sim
5151

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from numpy import matrix
55
except ImportError:
66
from numjy import matrix
7-
from test.tools import mneq_, aneq_, assert_dict_almost_equal
7+
from diffcalc.tests.tools import mneq_, aneq_, assert_dict_almost_equal
88

99
import diffcalc.util # @UnusedImport
1010
from diffcalc.hardware import DummyHardwareAdapter
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from numpy import matrix
66
except ImportError:
77
from numjy import matrix
8-
from test.tools import mneq_, aneq_, dneq_
8+
from diffcalc.tests.tools import mneq_, aneq_, dneq_
99

1010
import diffcalc.util # @UnusedImport
1111
from diffcalc.hardware import DummyHardwareAdapter
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)