Skip to content
Snippets Groups Projects
Commit f533f62b authored by David Douard's avatar David Douard
Browse files

model: kill Origin.type attribute

it was still here for bw-compat but should not be necessary any more.
parent 0a6d7e05
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,6 @@ def timestamps_with_timezone():
def origins():
return builds(
Origin,
type=sampled_from(['git', 'hg', 'svn', 'pypi', 'deb']),
url=urls())
......
......@@ -194,12 +194,6 @@ class TimestampWithTimezone(BaseModel):
class Origin(BaseModel):
"""Represents a software source: a VCS and an URL."""
url = attr.ib(type=str)
type = attr.ib(type=Optional[str], default=None)
def to_dict(self):
r = super().to_dict()
r.pop('type', None)
return r
@attr.s(frozen=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment