Skip to content
Snippets Groups Projects
Commit dd759ba6 authored by Coda Phillips's avatar Coda Phillips
Browse files

Remove bad tests

parent 2d03b472
No related branches found
No related tags found
No related merge requests found
...@@ -70,14 +70,14 @@ def _scan_for_outliers(frame, variable, delta_thresh): ...@@ -70,14 +70,14 @@ def _scan_for_outliers(frame, variable, delta_thresh):
#### TESTS #### #### TESTS ####
def test_hbb_temp_outlier_check(): #def test_hbb_temp_outlier_check():
frame = pd.DataFrame({ #frame = pd.DataFrame({
'HBBapexTemp':[0,1,10,1], #'HBBapexTemp':[0,1,10,1],
'HBBbottomTemp':[1,1,1,1], #'HBBbottomTemp':[1,1,1,1],
'HBBtopTemp':[0,1,10,1], #'HBBtopTemp':[0,1,10,1],
'qc_notes':'', #'qc_notes':'',
'sceneMirrorPosition':[ord(x) for x in 'HASA'] #'sceneMirrorPosition':[ord(x) for x in 'HASA']
}) #})
assert hbb_temp_outlier_check(frame, {})['hbb_temp_outlier_check'].values.tolist() == [0,0,1,0] #assert hbb_temp_outlier_check(frame, {})['hbb_temp_outlier_check'].values.tolist() == [0,0,1,0]
#
...@@ -5,12 +5,6 @@ import pandas as pd ...@@ -5,12 +5,6 @@ import pandas as pd
random_dataframe = pd.DataFrame(pd.np.random.randn(10,10), columns=list('abcdefghij')) random_dataframe = pd.DataFrame(pd.np.random.randn(10,10), columns=list('abcdefghij'))
def test_it_works():
qc_frame = check_frame(random_dataframe, {})
assert 'qc_percent' in qc_frame.columns
print(qc_frame)
def test_invalidate_record(): def test_invalidate_record():
invalidated = invalidate_record(three_scenes.copy(), 2, 'test', .5) invalidated = invalidate_record(three_scenes.copy(), 2, 'test', .5)
assert invalidated.loc[2].test == .5 assert invalidated.loc[2].test == .5
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment