Skip to content

Commit 289801a

Browse files
committed
Exclude job that was being run without tests
Prioritize doxygen from vcpkg over choco on windows jobs Disable direct connection for ValueComm & connections between two comms in the same model Fix bug where local server was counted twice by the proxy Fix expected output for AsciiTableComm w/ single column in array Add classes for wrapping different table formats w/ tests
1 parent 3a5dbcb commit 289801a

File tree

21 files changed

+3704
-433
lines changed

21 files changed

+3704
-433
lines changed

.github/workflows/stripped-install.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ jobs:
3737
install-julia: [false]
3838
install-matlab: [false]
3939
# astropy, trimesh, pygments, images, seq, excel, docs, dev
40-
# exclude:
41-
# - test-type: types-compiled
42-
# python-install: pip
40+
exclude:
41+
- python-install: pip
42+
test-base: false
4343
include:
4444
- python-install: conda
4545
test-base: false

tests/communication/test_AsciiTableComm.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ def testing_options(self):
8282
b'# f0\n# %g\n'
8383
+ nele * b'0\n' + nele * b'1\n'),
8484
'send': [[arr1['f0']], [arr2['f0']]],
85-
'recv': [[np.hstack([arr1, arr2])['f0']]],
86-
'recv_partial': [[[arr1['f0']]], [[arr2['f0']]]],
85+
'recv': [np.hstack([arr1, arr2])],
86+
'recv_partial': [[arr1], [arr2]],
8787
'dict': {'f0': arr1['f0']},
88-
'objects': [[arr1['f0']], [arr2['f0']]]}
89-
out['msg'] = out['send'][0]
88+
'objects': [arr1, arr2]}
89+
out['msg'] = arr1
9090
out['msg_array'] = arr1
9191
return out
9292

tests/conftest.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,6 +1380,20 @@ def recv_element():
13801380
return wrapped_recv_message_list
13811381

13821382

1383+
@pytest.fixture(scope="session")
1384+
def assert_unchanged():
1385+
1386+
@contextlib.contextmanager
1387+
def assert_unchanged_context(obj):
1388+
orig = copy.deepcopy(obj)
1389+
try:
1390+
yield
1391+
finally:
1392+
assert obj == orig
1393+
1394+
return assert_unchanged_context
1395+
1396+
13831397
@pytest.fixture(scope="session")
13841398
def assert_equal_file_contents():
13851399
r"""Assert that the contents of two files are equivalent.

0 commit comments

Comments
 (0)