Skip to content

Commit

Permalink
Update extend_about_data import (#63)
Browse files Browse the repository at this point in the history
* Update deprecated import to new path
Update ovos-bus-client dependency to ensure import availability

* Update patching in unit tests

---------

Co-authored-by: Daniel McKnight <[email protected]>
  • Loading branch information
NeonDaniel and NeonDaniel authored Sep 20, 2024
1 parent 0e8efd8 commit eb41c36
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions neon_gui/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

from ovos_bus_client import Message
from ovos_bus_client.message import Message
from ovos_utils.log import LOG, log_deprecation
from ovos_utils.gui import extend_about_data
from ovos_bus_client.apis.gui import extend_about_data
from datetime import datetime


Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ ovos-config~=0.0,>=0.0.10
click~=8.0
click-default-group~=1.2
tornado~=6.0
ovos-bus-client~=0.0,>=0.0.5
ovos-bus-client~=0.0,>=0.0.6
ovos-gui~=0.2
2 changes: 1 addition & 1 deletion tests/util_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_patch_config(self):
shutil.rmtree(test_config_dir)
os.environ.pop("XDG_CONFIG_HOME")

@mock.patch('ovos_utils.gui.extend_about_data')
@mock.patch('ovos_bus_client.apis.gui.extend_about_data')
def test_add_about_data(self, extend_data):
from neon_gui.utils import add_neon_about_data
add_neon_about_data()
Expand Down

0 comments on commit eb41c36

Please sign in to comment.