Skip to content

Commit

Permalink
1.0.1 (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel authored Apr 2, 2024
2 parents 26d4ac3 + 69f87aa commit 08f736d
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 52 deletions.
12 changes: 6 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Changelog

## [0.1.2a2](https://github.com/NeonGeckoCom/skill-free_music_archive/tree/0.1.2a2) (2023-06-15)
## [1.0.1a2](https://github.com/NeonGeckoCom/skill-free_music_archive/tree/1.0.1a2) (2024-04-02)

[Full Changelog](https://github.com/NeonGeckoCom/skill-free_music_archive/compare/0.1.2a1...0.1.2a2)
[Full Changelog](https://github.com/NeonGeckoCom/skill-free_music_archive/compare/1.0.1a1...1.0.1a2)

**Merged pull requests:**

- Deprecate `create_skill` method and update `__init__` for best practices [\#19](https://github.com/NeonGeckoCom/skill-free_music_archive/pull/19) ([NeonDaniel](https://github.com/NeonDaniel))
- Update test dependency to stable version [\#23](https://github.com/NeonGeckoCom/skill-free_music_archive/pull/23) ([NeonDaniel](https://github.com/NeonDaniel))

## [0.1.2a1](https://github.com/NeonGeckoCom/skill-free_music_archive/tree/0.1.2a1) (2023-06-12)
## [1.0.1a1](https://github.com/NeonGeckoCom/skill-free_music_archive/tree/1.0.1a1) (2024-02-05)

[Full Changelog](https://github.com/NeonGeckoCom/skill-free_music_archive/compare/0.1.1...0.1.2a1)
[Full Changelog](https://github.com/NeonGeckoCom/skill-free_music_archive/compare/1.0.0...1.0.1a1)

**Merged pull requests:**

- Refactor mycroft-messagebus-client to ovos-bus-client [\#18](https://github.com/NeonGeckoCom/skill-free_music_archive/pull/18) ([NeonDaniel](https://github.com/NeonDaniel))
- Support ovos-utils 0.1 [\#22](https://github.com/NeonGeckoCom/skill-free_music_archive/pull/22) ([NeonDaniel](https://github.com/NeonDaniel))



Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ ovos-workshop~=0.0.7
beautifulsoup4~=4.11
neon-utils~=1.0
ovos-plugin-common-play~=0.0.3
ovos_utils~=0.0.28
ovos-utils~=0.0, >=0.0.28
1 change: 1 addition & 0 deletions requirements/test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
neon-minerva[padatious]~=0.2
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def find_resource_files():
url=f'https://github.com/NeonGeckoCom/{SKILL_NAME}',
license='BSD-3-Clause',
install_requires=get_requirements("requirements.txt"),
extras_require={"test": get_requirements("requirements/test.txt")},
author='Neongecko',
author_email='[email protected]',
long_description=long_description,
Expand Down
4 changes: 2 additions & 2 deletions skill.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"beautifulsoup4~=4.11",
"neon-utils~=1.0",
"ovos-plugin-common-play~=0.0.3",
"ovos-workshop~=0.0.7",
"ovos_utils~=0.0.28"
"ovos-utils~=0.0, >=0.0.28",
"ovos-workshop~=0.0.7"
],
"system": {},
"skill": []
Expand Down
44 changes: 2 additions & 42 deletions test/test_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,53 +26,13 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

import shutil
import unittest
import pytest

from os import mkdir
from os.path import dirname, join, exists
from mock import Mock
from ovos_bus_client import Message
from ovos_plugin_common_play import MediaType
from ovos_utils.messagebus import FakeBus
from neon_minerva.tests.skill_unit_test_base import SkillTestCase

from mycroft.skills.skill_loader import SkillLoader


class TestSkill(unittest.TestCase):

@classmethod
def setUpClass(cls) -> None:
bus = FakeBus()
bus.run_in_thread()
skill_loader = SkillLoader(bus, dirname(dirname(__file__)))
skill_loader.load()
cls.skill = skill_loader.instance

# Define a directory to use for testing
cls.test_fs = join(dirname(__file__), "skill_fs")
if not exists(cls.test_fs):
mkdir(cls.test_fs)

# Override the configuration and fs paths to use the test directory
cls.skill.settings_write_path = cls.test_fs
cls.skill.file_system.path = cls.test_fs
cls.skill._init_settings()
cls.skill.initialize()

# Override speak and speak_dialog to test passed arguments
cls.skill.speak = Mock()
cls.skill.speak_dialog = Mock()

def setUp(self):
self.skill.speak.reset_mock()
self.skill.speak_dialog.reset_mock()

@classmethod
def tearDownClass(cls) -> None:
shutil.rmtree(cls.test_fs)

class TestSkillMethods(SkillTestCase):
def test_00_skill_init(self):
# Test any parameters expected to be set in init or initialize methods
from ovos_workshop.skills.common_play import OVOSCommonPlaybackSkill
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

__version__ = "1.0.0"
__version__ = "1.0.1"

0 comments on commit 08f736d

Please sign in to comment.