Skip to content

Add tests, name property, and merge everything into pyproject.toml#265

Merged
kaneryu merged 10 commits intomasterfrom
263-name-property-and-tests
Oct 15, 2025
Merged

Add tests, name property, and merge everything into pyproject.toml#265
kaneryu merged 10 commits intomasterfrom
263-name-property-and-tests

Conversation

@kaneryu
Copy link
Collaborator

@kaneryu kaneryu commented Oct 15, 2025

No description provided.

@kaneryu kaneryu linked an issue Oct 15, 2025 that may be closed by this pull request
@kaneryu kaneryu requested a review from Copilot October 15, 2025 17:24
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds comprehensive testing infrastructure and migrates all project configuration to pyproject.toml. The PR introduces a test suite with 8 test files covering different components of the pypresence library, along with supporting test fixtures and configuration. It also adds a name property to presence updates and consolidates all project configuration into a single pyproject.toml file.

Key changes:

  • Added comprehensive test suite with pytest configuration and fixtures
  • Added support for name parameter in presence updates
  • Migrated all configuration from setup.py and setup.cfg to pyproject.toml

Reviewed Changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/ Complete test suite with 8 test files covering all components
pyproject.toml Consolidated project configuration including build, dependencies, and tool settings
setup.py Simplified to legacy compatibility wrapper
pypresence/presence.py Added name parameter support
pypresence/payloads.py Added name parameter support
DEVELOPMENT.md New comprehensive development guide
.github/workflows/ Updated CI/CD configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

assert "none" not in result

def test_does_not_modify_original_dict(self):
"""Test that original dictionary is modified in-place (by design)"""
Copy link

Copilot AI Oct 15, 2025

Choose a reason for hiding this comment

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

The test name and docstring are contradictory. The test name suggests the original dict should not be modified, but the docstring says it's modified in-place by design. The test should clarify the actual expected behavior.

Suggested change
"""Test that original dictionary is modified in-place (by design)"""
"""Test that original dictionary is not modified by remove_none"""

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is okay. the 'does_not_modify' is referring to the fact that the remove_none should not change any other values, and just remove none. It's not contradictory.

pyproject.toml Outdated
Copy link

Copilot AI Oct 15, 2025

Choose a reason for hiding this comment

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

Setting universal = true for bdist_wheel is incorrect for Python 3.9+ only packages. This should be universal = false since the package doesn't support Python 2.

Suggested change
universal = true
universal = false

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in new commit

@kaneryu kaneryu added this to the 4.6.0 milestone Oct 15, 2025
@kaneryu kaneryu self-assigned this Oct 15, 2025
@kaneryu kaneryu merged commit 4d8987c into master Oct 15, 2025
32 checks passed
@kaneryu kaneryu deleted the 263-name-property-and-tests branch October 15, 2025 18:36
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.

feature request: Add support for the name property in the activity structure. Move on from the deprecated setup.py build system

1 participant

Comments