Olanetsoft/web3terms

feat: Add tests to verify web3 terms data format

Closed this issue · 2 comments

Context

Issue 35 specifies that the term's meaning should be 280 characters long or less and the term should be lowercase but currently, nothing enforces this rule or warns about it, which means that the only way to notice this is either during a code review or if the Twitter API does not respond as explained here 41

Suggested Solution

  • Add tests to check that every meaning is 280 characters or less and the term is lower case
  • Add a GitHub action that runs the tests when a pull request is opened to check if the data complies with the before-mentioned constraints

Extra

  • A test to verify that every term is unique could be added

Context

Issue 35 specifies that the term's meaning should be 280 characters long or less and the term should be lowercase but currently, nothing enforces this rule or warns about it, which means that the only way to notice this is either during a code review or if the Twitter API does not respond as explained here 41

Suggested Solution

  • Add tests to check that every meaning is 280 characters or less and the term is lower case
  • Add a GitHub action that runs the tests when a pull request is opened to check if the data complies with the before-mentioned constraints

Extra

  • A test to verify that every term is unique could be added

Are you going to work on the github action?

Context

Issue 35 specifies that the term's meaning should be 280 characters long or less and the term should be lowercase but currently, nothing enforces this rule or warns about it, which means that the only way to notice this is either during a code review or if the Twitter API does not respond as explained here 41

Suggested Solution

  • Add tests to check that every meaning is 280 characters or less and the term is lower case
  • Add a GitHub action that runs the tests when a pull request is opened to check if the data complies with the before-mentioned constraints

Extra

  • A test to verify that every term is unique could be added

Are you going to work on the github action?

Sure, I'll try to have it ready for tomorrow