Merge pull request #70 from aozarov/master
Remove a special case where the appengine-pipeline generate task_target for default module
diff --git a/python/src/pipeline/util.py b/python/src/pipeline/util.py
index 96f28e8..e253158 100755
--- a/python/src/pipeline/util.py
+++ b/python/src/pipeline/util.py
@@ -63,8 +63,6 @@
version = os.environ["CURRENT_VERSION_ID"].split(".")[0]
module = os.environ["CURRENT_MODULE_ID"]
- if module == "default":
- return version
return "%s.%s" % (version, module)
diff --git a/python/test/util_test.py b/python/test/util_test.py
index 7401981..980a473 100644
--- a/python/test/util_test.py
+++ b/python/test/util_test.py
@@ -41,10 +41,10 @@
def testGetTaskTargetDefaultModule(self):
os.environ["CURRENT_MODULE_ID"] = "default"
- self.assertEqual("v7", util._get_task_target())
+ self.assertEqual("v7.default", util._get_task_target())
task = taskqueue.Task(url="/relative_url",
target=util._get_task_target())
- self.assertEqual("v7", task.target)
+ self.assertEqual("v7.default", task.target)
if __name__ == '__main__':