When the solute A (liquid) dissolves in the solvent B (liquid), the extent of dissolution depends on interation of A-A, B-B and A-B.
For ideal solution, solvent-solute interaction is equal to solvent-solvent and solute-solute interactions.
These solutions obeys Raoult’s law over the entire range of concentration.
In n-heptane and n-hexane solution, the solvent-solute interaction is equal to solvent-solvent and solute-solute interaction. Thus, it will obeys Raoult's law.