Skip to content

Commit

Permalink
changed test_plottic_raises() because error under test no longer bein…
Browse files Browse the repository at this point in the history
…g raised
  • Loading branch information
Jazz Mack Smith committed Nov 16, 2023
1 parent 8a8c167 commit 10493ef
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Tests/test_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,15 @@ def test_plottic(self):


def test_plottic_raises(self):

# this test used to be a check on addViolin and colourByDetectorVoltage not both == true: now obsolete so changing:
noSamp = numpy.random.randint(50, high=100, size=None)
noFeat = numpy.random.randint(200, high=400, size=None)
msData = generateTestDataset(noSamp, noFeat)
print("colourBy %s" % msData.sampleMetadata["SampleClass"])
self.assertRaises(ValueError, nPYc.plotting.plotTIC, msData, addViolin=True)

#print("all columns %s" % msData.sampleMetadata.columns.values)

#'Assay Role' is not a column and should trigger a ValueError
self.assertRaises(ValueError, nPYc.plotting.plotTIC, msData, colourBy='Assay Role')


def test_jointplotRSDvCorrelation(self):
Expand Down

0 comments on commit 10493ef

Please sign in to comment.