Conversation
Signed-off-by: friendsa <github@duanfei.org>
Summary of ChangesHello @shaonianche, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on enhancing the stability and compatibility of the test suite. It addresses minor issues by updating deprecated assertion methods in Python's Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
Signed-off-by: friendsa <github@duanfei.org>
There was a problem hiding this comment.
Code Review
This pull request involves replacing assertEquals with assertEqual in the test files and updating the import path for Profile in test_profile.py. Additionally, it modifies the file paths in test_write_activity_file.py to use os.path.join for better cross-platform compatibility. The changes appear to improve code clarity and maintainability.
| def test_data_message_conversions(self): | ||
| dm1 = WorkoutStepMessage() | ||
| dm1.workout_step_name = 'test' | ||
| self.assertEquals('test', dm1.workout_step_name) |
| dm2.read_from_bytes(bytes1) | ||
| bytes2 = dm2.to_bytes() | ||
|
|
||
| self.assertEquals('test', dm2.workout_step_name) |
|
|
||
| print(f'{bytes1}') | ||
| print(f'{bytes2}') | ||
| self.assertEquals(bytes2, bytes1) |
|
|
||
| fit_file = builder.build() | ||
|
|
||
| self.assertEquals(len(fit_file.records), 3) |
|
|
||
| import unittest | ||
|
|
||
| from fit_tool.fit import Profile |
| records_size += len(buffer_) | ||
| records_crc = crc16(buffer_, crc=records_crc) | ||
|
|
||
| out_path = '../tests/out/activity_iterative.fit' |
| out_path = os.path.join(TEST_DIR, 'out', 'activity_with_developer_data.fit') | ||
|
|
||
| fit_file.to_file(out_path) | ||
| csv_path = '../tests/out/activity_with_developer_data.csv' |
| csv_path = os.path.join(TEST_DIR, 'out', 'activity_with_developer_data.csv') | ||
| fit_file.to_csv(csv_path) | ||
|
|
||
| # read back the file |
Enhance CI workflow to include coverage reporting in pytest tests #2
No description provided.