Skip to content

Commit

Permalink
Fixed tests for CSV/GoogleAPI io
Browse files Browse the repository at this point in the history
  • Loading branch information
iosonofabio committed Sep 12, 2017
1 parent f053564 commit 1a0d01d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -1,3 +1,6 @@
# private Google secret
example_data/example_google_client_secret.json

### https://raw.github.com/github/gitignore/160d27e2bebf784c4f4a1e070df057f3868b62bc/Python.gitignore

# Byte-compiled / optimized / DLL files
Expand Down
1 change: 1 addition & 0 deletions example_data/config_example.yml
Expand Up @@ -4,6 +4,7 @@
'description': 'Example Google Spreadsheet for cell metadata'
'url': 'https://docs.google.com/spreadsheets/d/15OKOC48WZYFUQvYl9E7qEsR6AjqE4_BW7qcCsjJAD6w'
'client_id_filename': 'example_data/example_google_client_id.json'
'client_secret_filename': 'example_data/example_google_client_secret.json'
'sheet': 'cells'
'cells': 'rows'
'example_sheet_tsv':
Expand Down
4 changes: 2 additions & 2 deletions test/io/count_table_csv_parser.py
Expand Up @@ -11,11 +11,11 @@
# NOTE: an env variable for the config file needs to be set when
# calling this script
print('Parsing example TSV count table')
from singlet.io.csv import parse_counts_table
from singlet.io import parse_counts_table
table = parse_counts_table('example_table_tsv')
print('Done!')

print('Parsing example TSV count table (split)')
from singlet.io.csv import parse_counts_table
from singlet.io import parse_counts_table
table = parse_counts_table('example_table_tsv_split')
print('Done!')
6 changes: 2 additions & 4 deletions test/io/samplesheet_csv_parser.py
Expand Up @@ -10,12 +10,10 @@

# NOTE: an env variable for the config file needs to be set when
# calling this script
from singlet.io.csv import parse_samplesheet
from singlet.io import parse_samplesheet

print('Parsing example TSV sample sheet')
table = parse_samplesheet(
'example_data/example_sample_table - sequenced.tsv',
'tsv')
table = parse_samplesheet('example_sheet_tsv')

#TODO: check it's correct
print('Done!')

0 comments on commit 1a0d01d

Please sign in to comment.