Permalink
Browse files

Add sleeps to test to avoid eutils issues

  • Loading branch information...
jakelever committed Mar 29, 2018
1 parent a0b2990 commit 5b563f91d5e7bad48d8a90a190749bcbf09264c0
Showing with 3 additions and 0 deletions.
  1. +3 −0 tests/test_basic.py
@@ -2,16 +2,19 @@
import pubrunner
import pubrunner.command_line
import os
import time

def test_countwords():
parentDir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
projectPath = os.path.join(parentDir,'examples','CountWords')
sys.argv = ['pubrunner', '--defaultsettings', '--test',projectPath]
pubrunner.command_line.main()
time.sleep(1)

def test_textminingcounter():
parentDir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
projectPath = os.path.join(parentDir,'examples','TextMiningCounter')
sys.argv = ['pubrunner', '--defaultsettings', '--test',projectPath]
pubrunner.command_line.main()
time.sleep(1)

0 comments on commit 5b563f9

Please sign in to comment.