Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mokko committed Jun 6, 2024
1 parent 04b430b commit 6f39e11
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/mpapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ def updateItem():
m = c.uploadItem2(mtype=args.mtype, ID=args.ID)
print(m)


def validate():
parser = argparse.ArgumentParser(description="validate for MpApi")
parser.add_argument(
Expand Down
4 changes: 2 additions & 2 deletions src/mpapi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -993,9 +993,9 @@ def vDelTermClass(self, *, instanceName: str, className: str) -> requests.Respon
Delete Vocabulary Instance Term Class
DELETE https://.../ria-ws/application/vocabulary/instances/{instanceName}/nodeClasses/{className}
"""

xml = "missing"

url = (
f"{self.appURL}/vocabulary/instances/{instanceName}/nodeClasses/{className}"
)
Expand Down
6 changes: 2 additions & 4 deletions src/mpapi/mink.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,14 +294,12 @@ def _fastforward(self, *, Type, ID, suffix):
well as the corresponding offset.
"""
no = 1
while (
self._chunkPath(Type=Type, ID=ID, no=no, suffix=suffix)
).exists():
while (self._chunkPath(Type=Type, ID=ID, no=no, suffix=suffix)).exists():
no += 1
else:
if no > 1:
no -= 1

offset = (no - 1) * self.chunker.chunkSize
return no, offset
# print(f" next chunk {no}; offset:{offset}")
Expand Down
2 changes: 1 addition & 1 deletion test/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_output():
def test_inspection():
# requires scaffold data
m = Module(file="sdata/m39-join-exhibit20222.xml")
with pytest.raises(TypeError): # as exc_info
with pytest.raises(TypeError): # as exc_info
m.totalSize(module="Objectssss") # none
assert m.totalSize(module="Exhibition") == 1
desc = m.describe()
Expand Down

0 comments on commit 6f39e11

Please sign in to comment.