diff options
| author | Tom Harley | 2018-04-22 22:30:54 +0100 |
|---|---|---|
| committer | Tom Harley | 2018-04-22 22:31:23 +0100 |
| commit | 1b2fe66acf4041728dcb772ee9638b6b79f34d1a (patch) | |
| tree | ecb03f6551e35336f5a654f3b3257435cbadfb6d /test | |
| parent | Edit file uploads to use raw data instead of forms (diff) | |
| parent | fixxed tests (diff) | |
| download | medicine-1b2fe66acf4041728dcb772ee9638b6b79f34d1a.tar.gz medicine-1b2fe66acf4041728dcb772ee9638b6b79f34d1a.zip | |
Merge branch ‘trh/gets’ of gitlab.cs.st-andrews.ac.uk:cs3099group-be-4/project-code into trh/gets
Diffstat (limited to 'test')
| -rw-r--r-- | test/.DS_Store | bin | 0 -> 6148 bytes | |||
| -rw-r--r-- | test/integration/protocol.routes.test.ts | 21 | ||||
| -rw-r--r-- | test/unit/Tissue Slides.00030.v13.csv | 3 |
3 files changed, 16 insertions, 8 deletions
diff --git a/test/.DS_Store b/test/.DS_Store Binary files differnew file mode 100644 index 0000000..eef9cc0 --- /dev/null +++ b/test/.DS_Store diff --git a/test/integration/protocol.routes.test.ts b/test/integration/protocol.routes.test.ts index a371fd5..d60f844 100644 --- a/test/integration/protocol.routes.test.ts +++ b/test/integration/protocol.routes.test.ts @@ -103,7 +103,8 @@ const completeProtocol: MochaForEachInput[] = [ 'warning', 'error', 'critical', - 'success' + 'success', + 'failure' ]), message: types.anything, label: optional(types.string), @@ -135,7 +136,7 @@ const completeProtocol: MochaForEachInput[] = [ ]) }), 200], ['post', '/properties?action=update', - [{id: 'new_prop', value: 'some_value'}], 200], + [{id: 'project_example', value: 2}], 200], ['get', '/user_privileges', array({ privilege: types.string, description: types.string, @@ -166,7 +167,8 @@ const completeProtocol: MochaForEachInput[] = [ public_admin_metadata: types.anything, private_admin_metadata: types.anything }, 200], - ['post', '/users/new_user', null, 200], + ['post', '/users/new_user?action=create', + {password: 'secret', privileges: []}, 200], ['get', '/users/mock_user/properties', { data: optional(types.anything) }, 200], @@ -182,7 +184,10 @@ const completeProtocol: MochaForEachInput[] = [ public_admin_metadata: types.anything, private_admin_metadata: types.anything }, 200], - ['post', '/current_user', null, 200], + ['post', '/current_user?action=update', {password: { + old: 'pass', + new: 'newpass' + }}, 200], ['get', '/project_roles', array({ role: types.string, description: types.string, @@ -208,11 +213,11 @@ const completeProtocol: MochaForEachInput[] = [ private_metadata: types.anything, admin_metadata: optional(types.anything) }, 200], - ['post', '/projects/mocky', null, 200], + ['post', '/projects/mocky2', {}, 200], ['get', '/projects/mocky/properties', null, 200], - ['post', '/projects/mocky/files/folder+some_file?action=overwrite', {}, 200], - ['get', '/projects/mocky/files/folder+some_file', null, 200], - ['get', '/projects/mocky/files_by_id/file1', null, 200] + ['post', '/projects/mocky/files/foler/file?action=overwrite', {}, 200], + ['get', '/projects/mocky/files/foler/file', null, 200] + //['get', '/projects/mocky/files_by_id/file1', null, 200] ]; /* tslint:enable:align */ diff --git a/test/unit/Tissue Slides.00030.v13.csv b/test/unit/Tissue Slides.00030.v13.csv new file mode 100644 index 0000000..32a365f --- /dev/null +++ b/test/unit/Tissue Slides.00030.v13.csv @@ -0,0 +1,3 @@ +inner_x;inner_y;level_name;class_name;Mean CK;Mean D240;Mean DAPI;Standard deviation CK;Standard deviation D240;Standard deviation DAPI;Ratio CK;Ratio D240;Ratio DAPI;Area (µm²);Border length (Pxl);Length (µm);Length/Thickness;Length/Width;Number of pixels;Perimeter;Rel. Border to Image Border;Thickness (Pxl);Vessel Wall thickness (µm);Volume (Pxl);Width (µm);Asymmetry;Border index;Circularity;Compactness;Density;Elliptic Fit;Ellipticity;Roundness;Shape index
+278;1644;TissueLevel (ROI and bud map);Markers 1 and 2;111.91269841;49.00952381;43.888888889;46.453427751;53.507779331;27.926326608;0.54641907759;0.23929133309;0.21428958932;139.167;158;16.324198007;undefined;1.1350017263;630;0;0;undefined;0;630;14.382531435;0.22056688527;1.5490196078;2.5842367704;1.6870615231;2.0749555783;0.66031746032;0.3083863821;0.91206852044;1.573717669
+314;1630;TissueLevel (ROI and bud map);vessel border to bud invasion;8.1280438312;65.000202922;28.99411526;10.822207323;66.30369822;25.807309309;0.079591224399;0.63649333643;0.28391543917;1088.5952;608;54.52;undefined;1.5064935065;4928;0;0;undefined;0;4928;36.19;0.41167215052;2.0965517241;1.786429407;1.8125;2.1469508548;0.60470779221;0.26168440136;1.0913355585;2.1652509527
\ No newline at end of file |
