Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
fix travis tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rao-abdul-mannan committed May 22, 2018
1 parent bba3306 commit 07343a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
8 changes: 3 additions & 5 deletions edx/analytics/tasks/insights/tests/test_user_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@
import json
from unittest import TestCase

from ddt import data, ddt, unpack
from luigi import date_interval
from mock import Mock, call

from ddt import data, ddt, unpack
from edx.analytics.tasks.common.tests.map_reduce_mixins import MapperTestMixin, ReducerTestMixin
from edx.analytics.tasks.insights.user_activity import (
InsertToMysqlCourseActivityTask, UserActivityTask
)
from edx.analytics.tasks.insights.user_activity import InsertToMysqlCourseActivityTask, UserActivityTask
from edx.analytics.tasks.util.constants import PredicateLabels
from edx.analytics.tasks.util.tests.opaque_key_mixins import InitializeLegacyKeysMixin, InitializeOpaqueKeysMixin
from mock import Mock, call


@ddt
Expand Down
2 changes: 1 addition & 1 deletion edx/analytics/tasks/monitor/overall_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ def spark_job(self, *args):
df = self.get_event_log_dataframe(self._spark)
df = df.groupBy('event_date').count()
df.coalesce(1).write.csv(self.output().path, mode='overwrite', sep='\t')
# df.repartition(1).rdd.map(lambda row: '\t'.join(map(str, row))).saveAsTextFile(self.output_dir().path)
# df.repartition(1).rdd.map(lambda row: '\t'.join(map(str, row))).saveAsTextFile(self.output_dir().path)
5 changes: 2 additions & 3 deletions edx/analytics/tasks/monitor/total_events_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@

from edx.analytics.tasks.common.mapreduce import MapReduceJobTaskMixin
from edx.analytics.tasks.common.pathutil import EventLogSelectionDownstreamMixin
from edx.analytics.tasks.monitor.overall_events import TotalEventsDailyTask, SparkTotalEventsDailyTask
from edx.analytics.tasks.util.url import ExternalURL, get_target_from_url
from edx.analytics.tasks.monitor.overall_events import SparkTotalEventsDailyTask, TotalEventsDailyTask
from edx.analytics.tasks.util.overwrite import OverwriteOutputMixin

from edx.analytics.tasks.util.url import ExternalURL, get_target_from_url

log = logging.getLogger(__name__)

Expand Down

0 comments on commit 07343a0

Please sign in to comment.