Skip to content

Fix random fail of test_if_dev_entry_point_works

Mateusz Żebrak requested to merge mzebrak/fix-clive-dev-test into develop

Fixes random fail during test_dev_entry_point like in https://gitlab.syncad.com/hive/clive/-/jobs/634636

What's yet unknown - why this error happens randomly - does not appear in https://gitlab.syncad.com/hive/clive/-/jobs/634627 (different runner, same commit)

Traceback (most recent call last):
  File "/builds/hive/clive/venv/bin/clive-dev", line 3, in <module>
    from clive.dev import main
  File "/builds/hive/clive/clive/__init__.py", line 3, in <module>
    from clive.__private.cli.completion import is_tab_completion_active
  File "/builds/hive/clive/clive/__private/cli/__init__.py", line 7, in <module>
    from clive.__private.cli.beekeeper import beekeeper
  File "/builds/hive/clive/clive/__private/cli/beekeeper.py", line 5, in <module>
    from clive.__private.cli.common import options
  File "/builds/hive/clive/clive/__private/cli/common/__init__.py", line 1, in <module>
    from . import options
  File "/builds/hive/clive/clive/__private/cli/common/options.py", line 35, in <module>
    _get_default_beekeeper_remote(),
  File "/builds/hive/clive/clive/__private/cli/common/options.py", line 20, in _get_default_beekeeper_remote
    address = Beekeeper.get_remote_address_from_settings() or Beekeeper.get_remote_address_from_connection_file()
  File "/builds/hive/clive/clive/__private/core/beekeeper/handle.py", line 183, in get_remote_address_from_connection_file
    connection_file = BeekeeperConfig.get_wallet_dir() / "beekeeper.connection"
  File "/builds/hive/clive/clive/__private/core/beekeeper/config.py", line 47, in get_wallet_dir
    return _wallet_dir_default()
  File "/builds/hive/clive/clive/__private/core/beekeeper/config.py", line 26, in _wallet_dir_default
    return Path(settings.data_path / "beekeeper")
TypeError: unsupported operand type(s) for /: 'str' and 'str'

Merge request reports

Loading