Skip to content

Commit

Permalink
[#44] updating with master
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdash committed May 30, 2023
2 parents feb1e84 + 4ba327b commit d1355ca
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:

strategy:
matrix:
python-version: [3.7]
python-version: [3.9]
platform: [ubuntu-latest]

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
hsmodels == 0.5.4
hsmodels >= 0.5.5
pytest == 6.0.2
requests == 2.24.0
email-validator
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

setup(
name='hsclient',
version='0.3.2',
version='0.3.3',
packages=find_packages(include=['hsclient', 'hsclient.*'],
exclude=("tests",)),
install_requires=[
'hsmodels==0.5.4',
'hsmodels>=0.5.5',
'requests',
'requests_oauthlib',
],
Expand Down
6 changes: 3 additions & 3 deletions tests/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def test_resource_metadata_updating(new_resource):
new_resource.metadata.title = "resource test"
new_resource.metadata.additional_metadata = {"key1": "value1", "key2": "value2", "key3": "value3"}
new_resource.metadata.abstract = "world’s"
new_resource.metadata.relations = [Relation(type=RelationType.isReferencedBy, value="is hosted by value")]
new_resource.metadata.relations = [Relation(type=RelationType.isVersionOf, value="is version of")]

new_resource.save()

Expand All @@ -155,7 +155,7 @@ def test_resource_metadata_updating(new_resource):
assert new_resource.metadata.additional_metadata["key3"] == "value3"
assert new_resource.metadata.abstract == "world’s"

assert new_resource.metadata.relations == [Relation(type=RelationType.isReferencedBy, value="is hosted by value")]
assert new_resource.metadata.relations == [Relation(type=RelationType.isVersionOf, value="is version of")]


def test_system_metadata(new_resource):
Expand All @@ -175,7 +175,7 @@ def test_resource_delete(hydroshare, new_resource):


def test_resource_cached_by_HydroShare_instance_slow(hydroshare, new_resource):
""" Verify resource object is present in resource object cache. """
"""Verify resource object is present in resource object cache."""
res_id = new_resource.resource_id
res = hydroshare.resource(res_id)

Expand Down

0 comments on commit d1355ca

Please sign in to comment.