Skip to content

Need help/direction on how to fix test_About_equals_with_small_text_differences in test_model.py #188

Description

@chinyeungli

The test fails for "self.assertEqual(a.dumps(True), b.dumps(True))"

Because
1.
license: |
+ public-domain
apache-2.0
- public-domain

License value order are different
1.

  • copyright: Copyright (c) 2013-2014 nexB Inc.
  • copyright: Copyright (c) 2013-2014 nexB Inc.

Extra spaces in copyright notice.

The dumps function doesn't strip spaces or change order of values.
I think it will fail because it compares the output AFTER the process instead of compare value on the go.

Perhaps we need to create a function to compare value instead of the whole file instead?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions