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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace invalid copyright signs [C] #3718

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

swastkk
Copy link
Contributor

@swastkk swastkk commented Apr 2, 2024

Fixes #3659

Tasks

  • Reviewed contribution guidelines
  • PR is descriptively titled 馃搼 and links the original issue above 馃敆
  • Tests pass -- look for a green checkbox 鉁旓笍 a few minutes after opening your PR
    Run tests locally to check for errors.
  • Commits are in uniquely-named feature branch and has no merge conflicts 馃搧
  • Updated documentation pages (if applicable)
  • Updated CHANGELOG.rst (if applicable)

Signed-off-by: swastkk <swastkk@gmail.com>
@swastkk
Copy link
Contributor Author

swastkk commented Apr 2, 2024

After adding the tests

=========================================== FAILURES ===========================================
__________________________ TestTextPreparation.test_invaild_copyright __________________________

self = <test_copyrights_basic.TestTextPreparation testMethod=test_invaild_copyright>

    def test_invaild_copyright(self):
        cp= '[C] The Regents of the University of Michigan'
        result= copyrights.prepare_text_line(cp)
>       assert result == 'Copyright (C) The Regents of the University of Michigan'
E       AssertionError: assert 'C The Regent...y of Michigan' == 'Copyright (C...y of Michigan'
E         - Copyright (C) The Regents of the University of Michigan
E         ?  ------------
E         + Copyright C The Regents of the University of Michigan

test_copyrights_basic.py:37: AssertionError
___________________ TestTextPreparation.test_invaild_copyright_insensitivity ___________________

self = <test_copyrights_basic.TestTextPreparation testMethod=test_invaild_copyright_insensitivity>

    def test_invaild_copyright_insensitivity(self):
        cp= '[c] The Regents of the University of Michigan and Merit Network, Inc. 1992,'
        result= copyrights.prepare_text_line(cp)
        print(result)
>       assert result== '(c) The Regents of the University of Michigan and Merit Network, Inc. 1992,'
E       AssertionError: assert 'c The Regent...k, Inc. 1992,' == '(c) The Rege...k, Inc. 1992,'
E         - (c) The Regents of the University of Michigan and Merit Network, Inc. 1992,
E         ? - -
E         + c The Regents of the University of Michigan and Merit Network, Inc. 1992,

test_copyrights_basic.py:43: AssertionError
------------------------------------- Captured stdout call -------------------------------------
c The Regents of the University of Michigan and Merit Network, Inc. 1992,
=================================== short test summary info ====================================
FAILED test_copyrights_basic.py::TestTextPreparation::test_invaild_copyright - AssertionError...
FAILED test_copyrights_basic.py::TestTextPreparation::test_invaild_copyright_insensitivity - ...
================================= 2 failed, 52 passed in 2.46s =================================

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.

Invalid copyright not detected
1 participant