aboutsummaryrefslogtreecommitdiff
path: root/rh/hooks_unittest.py
diff options
context:
space:
mode:
Diffstat (limited to 'rh/hooks_unittest.py')
-rwxr-xr-xrh/hooks_unittest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/rh/hooks_unittest.py b/rh/hooks_unittest.py
index 754a16e..0442f4e 100755
--- a/rh/hooks_unittest.py
+++ b/rh/hooks_unittest.py
@@ -617,6 +617,10 @@ class BuiltinHooksTests(unittest.TestCase):
self._test_file_filter(mock_check, rh.hooks.check_pylint3,
('foo.py',))
+ def test_rustfmt(self, mock_check, _mock_run):
+ self._test_file_filter(mock_check, rh.hooks.check_rustfmt,
+ ('foo.rs',))
+
def test_xmllint(self, mock_check, _mock_run):
"""Verify the xmllint builtin hook."""
self._test_file_filter(mock_check, rh.hooks.check_xmllint,