Skip to content

Commit d1fbd1b

Browse files
committed
Ensuring that all tests are running for attribution generation
1 parent 455fdfb commit d1fbd1b

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

about_code_tool/about.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,6 @@ def generate_attribution(self, template_path=None, limit_to=None):
12671267
limit_to = limit_to or []
12681268

12691269
about_object_fields = []
1270-
about_content_dict = {}
12711270
license_dict = {}
12721271

12731272
not_process_components = list(limit_to)

about_code_tool/tests/test_about.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -606,25 +606,23 @@ def test_remove_blank_lines_and_no_colon_fields(self):
606606
self.assertEqual(expected_warnings[i][0], w.code)
607607
self.assertEqual(expected_warnings[i][1], w.field_value)
608608

609-
# FIXME: This is failing because there is no component list provided
610-
def FAILING_test_generate_attribution_with_custom_template(self):
609+
def test_generate_attribution_with_custom_template(self):
611610
expected = (u'notice_text:'
612611
'version:2.4.3'
613612
'about_resource:httpd-2.4.3.tar.gz'
614613
'name:Apache HTTP Serverlicense_text:')
615614
test_file = join(TESTDATA_DIR, 'attrib/attrib.ABOUT')
616615
collector = about.Collector(test_file)
617616
template = join(TESTDATA_DIR, 'attrib/test.template')
618-
result = collector.generate_attribution(template)
617+
result = collector.generate_attribution(template,limit_to=[''])
619618
self.assertEqual(expected, result)
620619

621-
# FIXME: This is failing because there is no component list provided
622-
def FAILING_test_generate_attribution_with_default_template(self):
620+
def test_generate_attribution_with_default_template(self):
623621
f = open(join(TESTDATA_DIR, 'attrib/attrib.html'))
624622
expected = f.read()
625623
test_file = join(TESTDATA_DIR, 'attrib/attrib.ABOUT')
626624
collector = about.Collector(test_file)
627-
result = collector.generate_attribution()
625+
result = collector.generate_attribution(limit_to=[''])
628626
# Strip all the white spaces
629627
self.assertEqual(re.sub(r'\s+', '', expected), re.sub(r'\s+', '', result))
630628

0 commit comments

Comments
 (0)