Skip to content

Commit

Permalink
Fix bugs and improve tests marginally
Browse files Browse the repository at this point in the history
  • Loading branch information
Moosems committed Jul 29, 2024
1 parent 66461cf commit 1ae4972
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions collegamento/files_variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ def update_file(self, file: str, current_state: str) -> None:
self.files[file] = current_state

self.logger.debug("Creating notification dict")
notification: FileNotification = {
"id": super().create_message_id(),
"type": "notification",
notification: FileNotification = { # type: ignore
"file": file,
"remove": False,
"contents": self.files[file],
Expand Down
1 change: 0 additions & 1 deletion collegamento/simple_client_server/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ def notify_server(
}
final_notification.update(notification_dict)
self.logger.debug(f"Notification created: {final_notification}")

self.requests_queue.put(final_notification)
self.logger.info("Message sent")

Expand Down
2 changes: 2 additions & 0 deletions tests/test_file_variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def test_file_variants():
assert output is not None # noqa: E711
assert output["result"] == ["test", "contents"] # noqa: E712 # type: ignore

assert context.all_ids == []

context.kill_IPC()


Expand Down
2 changes: 2 additions & 0 deletions tests/test_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ def test_Client_Server():
assert output is not None # noqa: E711
assert output["result"] == False # noqa: E712 # type: ignore

assert context.all_ids == []

context.kill_IPC()

0 comments on commit 1ae4972

Please sign in to comment.