Skip to content

Commit

Permalink
Fix failing Github Actions checks (#653)
Browse files Browse the repository at this point in the history
* Update read_indexed_column.m

* Fix broken test

* add test-requirement
  • Loading branch information
ehennestad authored Jan 30, 2025
1 parent ab53589 commit 8c728fa
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
14 changes: 14 additions & 0 deletions +tests/+unit/FunctionTests.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
classdef FunctionTests < matlab.unittest.TestCase
% FunctionTests - Unit test for functions.

methods (TestClassSetup)
function setupClass(testCase)
% Get the root path of the matnwb repository
rootPath = misc.getMatnwbDir();

% Use a fixture to add the folder to the search path
testCase.applyFixture(matlab.unittest.fixtures.PathFixture(rootPath));

% Use a fixture to create a temporary working directory
testCase.applyFixture(matlab.unittest.fixtures.WorkingFolderFixture);
generateCore('savedir', '.');
end
end

methods (Test)
function testString2ValidName(testCase)
testCase.verifyWarning( ...
Expand Down
1 change: 1 addition & 0 deletions +tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
hdf5plugin
scipy
git+https://github.com/NeurodataWithoutBorders/nwbinspector.git@dev
git+https://github.com/NeurodataWithoutBorders/pynwb.git@dev
4 changes: 2 additions & 2 deletions +util/read_indexed_column.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function data = read_indexed_column(vector_index, vector_data, row)
error('NWB:read_indexed_column', ...
['The utility function read_indexed_column has been reprecated. Please,' ...
['The utility function read_indexed_column has been deprecated. Please,' ...
' use the getRow method of DynamicTable objects instead'] ...
)
)

0 comments on commit 8c728fa

Please sign in to comment.