Skip to content

Commit

Permalink
Merge pull request #43 from getmetal/task/sp/fix-status
Browse files Browse the repository at this point in the history
Patch: Fix status for DEACTIVATING
  • Loading branch information
Czechh authored Oct 9, 2023
2 parents acf1da0 + 72a635a commit b7f9d61
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "metal_sdk"
version = "2.2.1"
version = "2.2.2"
authors = [
{ name="Metal Technologies Inc", email="[email protected]" },
]
Expand Down
2 changes: 1 addition & 1 deletion src/metal_sdk/typings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class TuneLabel(Enum):


class IndexStatus(Enum):
ARCHIVED = "ARCHIVED"
DEACTIVATING = "DEACTIVATING"
UNARCHIVED = "UNARCHIVED"


Expand Down
4 changes: 2 additions & 2 deletions tests/test_metal.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def test_metal_add_index_with_payload(self):
def test_metal_update_index_with_payload(self):
mock_index_id = "test_index"
payload = {
"status": "ARCHIVED",
"status": "DEACTIVATING",
}

metal = Metal(API_KEY, CLIENT_ID)
Expand All @@ -522,4 +522,4 @@ def test_metal_update_index_with_payload(self):
self.assertEqual(metal.request.call_count, 1)
self.assertEqual(metal.request.call_args[0][0], "put")
self.assertEqual(metal.request.call_args[0][1], "v1/indexes/test_index")
self.assertEqual(metal.request.call_args[1]["json"]["status"], "ARCHIVED")
self.assertEqual(metal.request.call_args[1]["json"]["status"], "DEACTIVATING")

0 comments on commit b7f9d61

Please sign in to comment.