|
28 | 28 | from tensorflow_docs.api_generator import reference_resolver as reference_resolver_lib
|
29 | 29 |
|
30 | 30 |
|
31 |
| - |
32 | 31 | class TestReferenceResolver(absltest.TestCase):
|
33 | 32 | _BASE_DIR = tempfile.mkdtemp()
|
34 | 33 |
|
@@ -113,6 +112,7 @@ class TestPartialSymbolAutoRef(parameterized.TestCase):
|
113 | 112 | ('parens', 'Model.fit(x, y, epochs=5)', '../tf/keras/Model.md#fit'),
|
114 | 113 | ('duplicate_name', 'tf.matmul', '../tf/linalg/matmul.md'),
|
115 | 114 | ('full_name', 'tf.concat', '../tf/concat.md'),
|
| 115 | + ('extra_backticks', '`tf.concat`', '../tf/concat.md'), |
116 | 116 | ('normal_and_compat', 'linalg.matmul', '../tf/linalg/matmul.md'),
|
117 | 117 | ('compat_only', 'math.deprecated', None),
|
118 | 118 | ('contrib_only', 'y.z', None),
|
@@ -146,7 +146,7 @@ def test_partial_symbol_references(self, string, link):
|
146 | 146 | if link is None:
|
147 | 147 | expected = input_string
|
148 | 148 | else:
|
149 |
| - expected = self.REF_TEMPLATE.format(link=link, text=string) |
| 149 | + expected = self.REF_TEMPLATE.format(link=link, text=string.strip('`')) |
150 | 150 |
|
151 | 151 | self.assertEqual(expected, ref_string)
|
152 | 152 |
|
|
0 commit comments