-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #793 from Crown-Commercial-Service/Update-Banner-a…
…nd-Tests Update banner and tests
- Loading branch information
Showing
3 changed files
with
26 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
from .flask_init import init_app | ||
|
||
|
||
__version__ = '60.8.1' | ||
__version__ = '60.9.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,36 @@ | ||
from freezegun import freeze_time | ||
# from freezegun import freeze_time | ||
|
||
from dmutils.dmp_so_status import are_new_frameworks_live | ||
|
||
|
||
@freeze_time('2022-03-08') | ||
def test_should_be_false_if_before_go_live_date(): | ||
assert are_new_frameworks_live({}) is False | ||
def test_should_be_true(): | ||
assert are_new_frameworks_live({}) is True | ||
|
||
# @freeze_time('2022-03-08') | ||
# def test_should_be_false_if_before_go_live_date(): | ||
# assert are_new_frameworks_live({}) is False | ||
|
||
@freeze_time('2022-03-09 12:00:01') | ||
def test_should_be_true_if_on_go_live_date(): | ||
assert are_new_frameworks_live({}) is True | ||
|
||
# @freeze_time('2022-03-09 12:00:01') | ||
# def test_should_be_true_if_on_go_live_date(): | ||
# assert are_new_frameworks_live({}) is True | ||
|
||
@freeze_time('2022-03-10') | ||
def test_should_be_true_if_after_go_live_date(): | ||
assert are_new_frameworks_live({}) is True | ||
|
||
# @freeze_time('2022-03-10') | ||
# def test_should_be_true_if_after_go_live_date(): | ||
# assert are_new_frameworks_live({}) is True | ||
|
||
|
||
@freeze_time('2022-03-08') | ||
def test_should_be_true_if_before_date_and_go_live_param(): | ||
assert are_new_frameworks_live({'show_dmp_so_banner': 'true'}) is True | ||
# @freeze_time('2022-03-08') | ||
# def test_should_be_true_if_before_date_and_go_live_param(): | ||
# assert are_new_frameworks_live({'show_dmp_so_banner': 'true'}) is True | ||
|
||
|
||
@freeze_time('2022-03-08') | ||
def test_should_be_false_if_before_date_and_not_go_live_param(): | ||
assert are_new_frameworks_live({'show_dmp_1.0_banner': 'true'}) is False | ||
# @freeze_time('2022-03-08') | ||
# def test_should_be_false_if_before_date_and_not_go_live_param(): | ||
# assert are_new_frameworks_live({'show_dmp_1.0_banner': 'true'}) is False | ||
|
||
|
||
@freeze_time('2022-05-18 15:00:01') | ||
def test_should_be_false_after_g13_closes(): | ||
assert are_new_frameworks_live({'show_dmp_1.0_banner': 'true'}) is False | ||
# @freeze_time('2022-05-18 15:00:01') | ||
# def test_should_be_false_after_g13_closes(): | ||
# assert are_new_frameworks_live({'show_dmp_1.0_banner': 'true'}) is False |