text: import requests
  import os
  
  
  def test_upload():
      r = requests.post("http://localhost/txt/upload", data={
          'chr_col': 1,
          'pos_col': 2,
          'snp_col': 3,
          'ea_col': 4,
          'oa_col': 5,
          'eaf_col': 10,
          'beta_col': 6,
          'se_col': 7,
          'pval_col': 9,
          'ncontrol_col': 8,
          'delimiter': 'tab',
          'header': 'True',
          'gzipped': 'False',
          'build': 'GRCh37'
      }, files={'gwas_file': open(os.path.join('tests', 'data', 'example.1k.txt'), 'r')})
  
      assert r.status_code == 201
      assert 'job' in r.json()
  