winglian commited on
Commit
fd5f965
1 Parent(s): 1c33eb8

update for pr feedback

Browse files
Files changed (1) hide show
  1. tests/test_validation.py +2 -9
tests/test_validation.py CHANGED
@@ -95,14 +95,7 @@ class ValidationTest(unittest.TestCase):
95
  validate_config(cfg)
96
 
97
  def test_hf_use_auth_token(self):
98
- base_cfg = DictDefault(
99
- {
100
- "push_dataset_to_hub": None,
101
- "hf_use_auth_token": None,
102
- }
103
- )
104
-
105
- cfg = base_cfg | DictDefault(
106
  {
107
  "push_dataset_to_hub": "namespace/repo",
108
  }
@@ -111,7 +104,7 @@ class ValidationTest(unittest.TestCase):
111
  with pytest.raises(ValueError, match=r".*hf_use_auth_token.*"):
112
  validate_config(cfg)
113
 
114
- cfg = base_cfg | DictDefault(
115
  {
116
  "push_dataset_to_hub": "namespace/repo",
117
  "hf_use_auth_token": True,
 
95
  validate_config(cfg)
96
 
97
  def test_hf_use_auth_token(self):
98
+ cfg = DictDefault(
 
 
 
 
 
 
 
99
  {
100
  "push_dataset_to_hub": "namespace/repo",
101
  }
 
104
  with pytest.raises(ValueError, match=r".*hf_use_auth_token.*"):
105
  validate_config(cfg)
106
 
107
+ cfg = DictDefault(
108
  {
109
  "push_dataset_to_hub": "namespace/repo",
110
  "hf_use_auth_token": True,