Skip to content

Commit

Permalink
Allow loading data from anywhere in __tests__
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Nov 12, 2014
1 parent 9cb1815 commit c721e6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cycledash/views.py
Expand Up @@ -168,8 +168,7 @@ def trends(caller_name):
# (It is added on automatically when requesting a HDFS file).
@app.route('/vcf/<path:vcf_path>')
def hdfs_vcf(vcf_path):
if (app.config['ALLOW_LOCAL_VCFS'] and
'__tests__/js/data' in vcf_path):
if app.config['ALLOW_LOCAL_VCFS'] and vcf_path.startswith('__tests__/'):
# we only load test data that we mean to load locally
vcf_text = open(vcf_path).read()
else:
Expand Down

0 comments on commit c721e6a

Please sign in to comment.