Skip to content

Conversation

@apenney
Copy link

@apenney apenney commented Feb 28, 2025

This fixes two small issues, and adds a set of tests which would have detected both issues.

This fixes two small issues, and adds a set of tests
which would have detected both issues.
@apenney apenney force-pushed the ap/fix-tileset-bug branch from 3bf6846 to 5a50c33 Compare March 1, 2025 16:52
Copy link
Owner

@pnorman pnorman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a couple of typedef issues in the tests, but I'm going to pull in the changes to tileset.py

"""
A fake implementation of Storage for testing purposes.
"""
def __init__(self, calls: List[str], rets: queue.SimpleQueue) -> None:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use list instead of List

tile: Tile,
_layers: Dict[str, bytes],
_render_time: int = 0
) -> Optional[Union[datetime.datetime, str]]:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The signature of save_tile is save_tile(self, tile: Tile, layers: dict[str, bytes]), so the fake one should match

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants