Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic testing for i18n-check #2

Closed
2 tasks done
andrewtavis opened this issue Dec 21, 2024 · 7 comments
Closed
2 tasks done

Basic testing for i18n-check #2

andrewtavis opened this issue Dec 21, 2024 · 7 comments
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@andrewtavis
Copy link
Member

Terms

Description

Once we have the scripts migrated over from activist, the next step would be to add pytest based testing to the directory. We’d want to have some fake data in the testing files with valid and invalid i18n uses and make sure that future changes maintains the current functionality. This will also allow us to guide development in the future when we try to expand the functionality of the package.

Contribution

Happy to work on this and review when a PR is up! 😊

@andrewtavis
Copy link
Member Author

As a part of this, we'd want to use the new YAML file for all check scripts:

  • Load in .i18n-check.yaml
  • Replace all instances of file_types_to_check, directories_to_skip and files_to_skip with the data from the yaml file

Then we can move on to writing Pytest tests for this :)

@andrewtavis
Copy link
Member Author

@OmarAI2003, don't forget to write in here so I can assign :)

@OmarAI2003
Copy link
Contributor

Here and ready to be assigned! 👍

@andrewtavis
Copy link
Member Author

Assigned! Let me know if you need any support here, @OmarAI2003 :)

@andrewtavis
Copy link
Member Author

Let's start on #5 first and do a PR for that, @OmarAI2003, and then you're welcome to start with this issue. I think that once this one is done you'll have a lot more of an understanding of what the functionality of the CLI will be, and then you'll be ready to work on #4 :)

For the tests, let's load in the testing files via utils as has been done, and then we can assert that all of the checks fail, as the directory has been set up that there's a problem that will fail each one. From there we can expand it, but that level of testing should be enough for the initial release.

@andrewtavis
Copy link
Member Author

I think we're almost done with this here, @OmarAI2003 :) Can you go through the new environment setup and then run mypy ./src --config-file ./pyproject.toml in the project root? From there you'll see 20 or so errors, and once those are fixed we'll be good to close this! You can do one more PR for the needed fixes :)

From there we can maybe do another issue for the tests for the actual i18n-check functionality with the test frontend 😊

@andrewtavis andrewtavis added the good first issue Good for newcomers label Feb 26, 2025
OmarAI2003 added a commit to OmarAI2003/i18n-check that referenced this issue Feb 27, 2025
@OmarAI2003 OmarAI2003 mentioned this issue Feb 27, 2025
1 task
@andrewtavis
Copy link
Member Author

I think we're good to close this one and move on to the CLI functionality, @OmarAI2003 😊 From here we can open a new issue for the functionality tests once we know that things are functioning the way we expect them to with the test frontend :)

Thanks for the great step here for i18n-check :)

@github-project-automation github-project-automation bot moved this from Todo to Done in activist Board Feb 27, 2025
@OmarAI2003 OmarAI2003 mentioned this issue Mar 2, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
Status: Done
Development

No branches or pull requests

2 participants