Skip to content

Commit

Permalink
Fix EtlTest test able to run every where (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
HyukjinKwon authored and ueshin committed Apr 19, 2019
1 parent 9479fbb commit 2a3be45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion databricks/koalas/tests/test_etl.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# limitations under the License.
#

import os
import unittest

import pandas as pd
Expand All @@ -25,7 +26,8 @@ class EtlTest(ComparisonTestBase):

@property
def pdf(self):
return pd.read_csv('data/sample_stocks.csv')
test_dir = os.path.dirname(os.path.realpath(__file__))
return pd.read_csv('%s/../../../data/sample_stocks.csv' % test_dir)

@compare_both
def test_etl(self, df):
Expand Down

0 comments on commit 2a3be45

Please sign in to comment.