2022-02-03 14:43:39 +01:00
|
|
|
from waybackpy import __version__
|
2022-01-30 15:32:17 +01:00
|
|
|
from waybackpy.utils import (
|
|
|
|
DEFAULT_USER_AGENT,
|
2022-02-03 14:43:39 +01:00
|
|
|
latest_version_github,
|
|
|
|
latest_version_pypi,
|
2022-01-30 15:32:17 +01:00
|
|
|
)
|
2022-01-24 13:20:36 +01:00
|
|
|
|
|
|
|
|
|
|
|
def test_default_user_agent():
|
|
|
|
assert (
|
|
|
|
DEFAULT_USER_AGENT
|
|
|
|
== "waybackpy %s - https://github.com/akamhy/waybackpy" % __version__
|
|
|
|
)
|
2022-01-30 15:32:17 +01:00
|
|
|
|
|
|
|
|
|
|
|
def test_latest_version():
|
|
|
|
package_name = "waybackpy"
|
|
|
|
assert latest_version_github(package_name) == latest_version_pypi(package_name)
|