Skip to content

Commit

Permalink
[IMP] [16.0] pre-commit : black hook (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
rivo2302 authored Dec 9, 2024
1 parent 06591c7 commit e314873
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .docker_files/main/tests/test_installed_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ class TestModules(TransactionCase):

def setUp(self):
super(TestModules, self).setUp()
self.modules = self.env['ir.module.module']
self.modules = self.env["ir.module.module"]

def test_hr_event(self):
"""HR Event is installed."""
self.assertTrue(self.modules.search([('name', '=', 'hr_event')]))
self.assertTrue(self.modules.search([("name", "=", "hr_event")]))

def test_hr_working_space(self):
"""Working Space is installed."""
self.assertTrue(self.modules.search([('name', '=', 'hr_working_space')]))
self.assertTrue(self.modules.search([("name", "=", "hr_working_space")]))
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ default_language_version:
python: python3
node: "14.13.0"
repos:
- repo: https://github.com/psf/black
rev: 22.8.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 3.8.3
hooks:
Expand Down

0 comments on commit e314873

Please sign in to comment.