Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0] auto_backup: Tests fail #3066

Closed
BT-anieto opened this issue Oct 10, 2024 · 1 comment · Fixed by #3089
Closed

[16.0] auto_backup: Tests fail #3066

BT-anieto opened this issue Oct 10, 2024 · 1 comment · Fixed by #3089
Labels

Comments

@BT-anieto
Copy link
Contributor

I have a failing tests in a PR related to auto_backup module.

Module

auto_backup

Describe the bug

Tests are failing. Check, for example, this PR: #3061

@BT-anieto BT-anieto added the bug label Oct 10, 2024
@mathben
Copy link

mathben commented Oct 15, 2024

More information from log https://github.com/OCA/server-tools/actions/runs/11273741765/job/31351416123?pr=3061

 2024-10-10 12:17:22,354 406 ERROR odoo odoo.addons.auto_backup.models.db_backup: Action backup - OSError: [Errno 17] File exists: '/github/home/.local/share/Odoo/backups/odoo' 
Traceback (most recent call last):
  File "/__w/server-tools/server-tools/auto_backup/models/db_backup.py", line 157, in action_backup
    os.makedirs(rec.folder)
  File "/usr/lib/python3.10/os.py", line 225, in makedirs
    mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/github/home/.local/share/Odoo/backups/odoo'
2024-10-10 12:17:24,020 406 ERROR odoo odoo.addons.auto_backup.models.db_backup: pysftp ConnectionException: ('test', 'test') 
Traceback (most recent call last):
  File "/__w/server-tools/server-tools/auto_backup/models/db_backup.py", line 189, in action_backup
    remote.makedirs(rec.folder)
  File "/usr/lib/python3.10/unittest/mock.py", line 1114, in __call__
    return self._mock_call(*args, **kwargs)
  File "/usr/lib/python3.10/unittest/mock.py", line 1118, in _mock_call
    return self._execute_mock_call(*args, **kwargs)
  File "/usr/lib/python3.10/unittest/mock.py", line 1173, in _execute_mock_call
    raise effect
odoo.addons.auto_backup.tests.test_db_backup.TestConnectionException: ('test', 'test')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants