Skip to content

Commit

Permalink
Merge pull request #68 from squirrelo/testdata
Browse files Browse the repository at this point in the history
populate study_preprocessed_data table for tests
  • Loading branch information
ElDeveloper committed Jun 2, 2014
2 parents c6cdf94 + 83cb436 commit 7f910a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qiita_db/support_files/populate_test_db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,9 @@ INSERT INTO qiita.prep_1 (sample_id, BarcodeSequence, LIBRARY_CONSTRUCTION_PROTO
-- Insert preprocessed information for raw data 1
INSERT INTO qiita.preprocessed_data (raw_data_id, preprocessed_params_table, preprocessed_params_id) VALUES (1, 'preprocessed_sequence_illumina_params', 1);

-- Insert (link) preprocessed information to study 1
INSERT INTO qiita.study_preprocessed_data (preprocessed_data_id, study_id) VALUES (1, 1);

-- Insert the preprocessed filepath for raw data 1
INSERT INTO qiita.filepath (filepath, filepath_type_id) VALUES ('$QIITA_TEST_FOLDER/seqs.fna', 4), ('$QIITA_TEST_FOLDER/seqs.qual', 5);

Expand Down
3 changes: 3 additions & 0 deletions qiita_db/test/test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ def test_prep_1(self):
def test_preprocessed_data(self):
self._check_count("qiita.preprocessed_data", 1)

def test_study_preprocessed_data(self):
self._check_count("qiita.study_preprocessed_data", 1)

def test_preprocessed_filepath(self):
self._check_count("qiita.preprocessed_filepath", 2)

Expand Down

0 comments on commit 7f910a8

Please sign in to comment.