diff --git a/annual-reports/tests/test_api.py b/annual-reports/tests/test_api.py index 3a18a51..d757b33 100644 --- a/annual-reports/tests/test_api.py +++ b/annual-reports/tests/test_api.py @@ -45,81 +45,32 @@ def test_subjects(self): with Session(self.annual_reports.engine) as session: categories = session.query(Categories).all() - assert len(categories) == 72 + assert len(categories) == 23 expected = { "Particle Physics - Experiment": 357, "Particle Physics - Phenomenology": 255, - "hep-ph": 203, - "hep-ex": 172, "Detectors and Experimental Techniques": 156, "Nuclear Physics - Experiment": 115, "Particle Physics - Theory": 114, "Accelerators and Storage Rings": 113, "Astrophysics and Astronomy": 96, - "hep-th": 86, - "physics.ins-det": 62, "General Relativity and Cosmology": 60, - "gr-qc": 48, - "astro-ph.CO": 47, - "nucl-ex": 42, "Computing and Computers": 41, "Nuclear Physics - Theory": 39, - "physics.acc-ph": 28, "Other Fields of Physics": 27, - "nucl-th": 25, "Health Physics and Radiation Effects": 23, "Particle Physics - Lattice": 17, - "astro-ph.HE": 16, "Mathematical Physics and Mathematics": 15, "Physics in General": 15, - "cs.LG": 14, "General Theoretical Physics": 13, - "hep-lat": 13, - "quant-ph": 13, "Quantum Technology": 9, "Engineering": 8, - "physics.data-an": 8, - "astro-ph.IM": 6, "Chemical Physics and Chemistry": 6, "Condensed Matter": 6, "Education and Outreach": 6, - "astro-ph.GA": 4, - "cond-mat.str-el": 4, - "Data Analysis and Statistics": 4, - "math.AG": 4, - "Other": 4, - "physics.atom-ph": 4, - "physics.comp-ph": 4, - "physics.plasm-ph": 4, - "cond-mat.stat-mech": 3, - "cs.CV": 3, - "math-ph": 3, - "math.MP": 3, "Nonlinear Systems": 3, - "physics.gen-ph": 3, - "math.DS": 2, - "nlin.SI": 2, - "physics.chem-ph": 2, - "physics.med-ph": 2, - "physics.optics": 2, - "stat.ML": 2, - "astro-ph.EP": 1, - "astro-ph.SR": 1, - "cond-mat.mes-hall": 1, - "cond-mat.other": 1, - "cond-mat.quant-gas": 1, - "cs.AR": 1, - "cs.DC": 1, - "cs.PF": 1, - "math.AT": 1, - "math.CA": 1, - "math.DG": 1, - "nlin.CD": 1, "Other Subjects": 1, - "physics.app-ph": 1, - "physics.ed-ph": 1, - "physics.soc-ph": 1, } for category in categories: assert category.category in expected