From 87275a6dc8b1736b3518969368fc942a796a4df4 Mon Sep 17 00:00:00 2001 From: "Jip J. Dekker" Date: Fri, 20 Jun 2014 11:16:56 +0200 Subject: [PATCH] Edited the tests --- tests/test_configurator.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_configurator.py b/tests/test_configurator.py index df29da9..0eb593d 100644 --- a/tests/test_configurator.py +++ b/tests/test_configurator.py @@ -10,16 +10,16 @@ class TestConfigurator(unittest.TestCase): self.conf = Configurator() def test_set_output(self): - self.conf.set_output(filename="test.txt", fileformat="csv") + self.conf.set_output(filename="test.txt", fileformat="csv", compound="test") self.assertEqual(self.conf.scrapy_settings["FEED_URI"], "test.txt") self.assertEqual(self.conf.scrapy_settings["FEED_FORMAT"], "csv") - self.conf.set_output("results.*format*", "jsonlines") - self.assertEqual(self.conf.scrapy_settings["FEED_URI"], "results.json") + self.conf.set_output(".*format*", "jsonlines", "test") + self.assertEqual(self.conf.scrapy_settings["FEED_URI"], "test.json") self.assertEqual(self.conf.scrapy_settings["FEED_FORMAT"], "jsonlines") - self.conf.set_output("results.*format*", "csv") - self.assertEqual(self.conf.scrapy_settings["FEED_URI"], "results.csv") + self.conf.set_output("results.*format*", "csv", "test") + self.assertEqual(self.conf.scrapy_settings["FEED_URI"], "test.csv") self.assertEqual(self.conf.scrapy_settings["FEED_FORMAT"], "csv") def test_start_log(self):